Widget.singleChildScrollView constructor Null safety

const Widget.singleChildScrollView(
  1. {Key? key,
  2. @Default(Axis.vertical) Axis scrollDirection,
  3. @Default(false) bool reverse,
  4. EdgeInsets? padding,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. Widget? child,
  8. @Default(Clip.hardEdge) Clip clipBehavior,
  9. String? restorationId,
  10. @Default(ScrollViewKeyboardDismissBehavior.manual) ScrollViewKeyboardDismissBehavior keyboardDismissBehavior}
)

Implementation

const factory Widget.singleChildScrollView({
  Key? key,
  @Default(Axis.vertical) Axis scrollDirection,
  @Default(false) bool reverse,
  EdgeInsets? padding,
  bool? primary,
  ScrollPhysics? physics,
  Widget? child,
  @Default(Clip.hardEdge) Clip clipBehavior,
  String? restorationId,
  @Default(ScrollViewKeyboardDismissBehavior.manual)
      ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
}) = SingleChildScrollView;