CustomScrollView constructor Null safety

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

Implementation

const factory CustomScrollView(
    {final Key? key,
    final Axis scrollDirection,
    final bool reverse,
    final bool? primary,
    final ScrollPhysics? physics,
    final bool shrinkWrap,
    final Key? center,
    final double anchor,
    final double? cacheExtent,
    final List<Sliver> slivers,
    final int? semanticChildCount,
    final ScrollViewKeyboardDismissBehavior keyboardDismissBehavior,
    final String? restorationId,
    final Clip clipBehavior}) = _$CustomScrollView;