Widget.customScrollView constructor Null safety

const Widget.customScrollView(
  1. {Key? key,
  2. @Default(Axis.vertical) Axis scrollDirection,
  3. @Default(false) bool reverse,
  4. bool? primary,
  5. ScrollPhysics? physics,
  6. @Default(false) bool shrinkWrap,
  7. Key? center,
  8. @Default(0.0) double anchor,
  9. double? cacheExtent,
  10. @Default([]) List<Sliver> slivers,
  11. int? semanticChildCount,
  12. @Default(ScrollViewKeyboardDismissBehavior.manual) ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
  13. String? restorationId,
  14. @Default(Clip.hardEdge) Clip clipBehavior}
)

Implementation

const factory Widget.customScrollView({
  Key? key,
  @Default(Axis.vertical) Axis scrollDirection,
  @Default(false) bool reverse,
  bool? primary,
  ScrollPhysics? physics,
  @Default(false) bool shrinkWrap,
  Key? center,
  @Default(0.0) double anchor,
  double? cacheExtent,
  @Default([]) List<Sliver> slivers,
  int? semanticChildCount,
  @Default(ScrollViewKeyboardDismissBehavior.manual)
      ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
  String? restorationId,
  @Default(Clip.hardEdge) Clip clipBehavior,
}) = CustomScrollView;