Widget.listViewCustom constructor Null safety

const Widget.listViewCustom(
  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. EdgeInsets? padding,
  8. double? itemExtent,
  9. Widget? prototypeItem,
  10. required SliverChildDelegate childrenDelegate,
  11. double? cacheExtent,
  12. int? semanticChildCount,
  13. @Default(ScrollViewKeyboardDismissBehavior.manual) ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
  14. String? restorationId,
  15. @Default(Clip.hardEdge) Clip clipBehavior}
)

Implementation

const factory Widget.listViewCustom({
  Key? key,
  @Default(Axis.vertical) Axis scrollDirection,
  @Default(false) bool reverse,
  bool? primary,
  ScrollPhysics? physics,
  @Default(false) bool shrinkWrap,
  EdgeInsets? padding,
  double? itemExtent,
  Widget? prototypeItem,
  required SliverChildDelegate childrenDelegate,
  double? cacheExtent,
  int? semanticChildCount,
  @Default(ScrollViewKeyboardDismissBehavior.manual)
      ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
  String? restorationId,
  @Default(Clip.hardEdge) Clip clipBehavior,
}) = ListViewCustom;