CustomScrollView constructor Null safety

const CustomScrollView(
  1. {Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. ScrollBehavior? scrollBehavior,
  8. bool shrinkWrap = false,
  9. Key? center,
  10. double anchor = 0.0,
  11. double? cacheExtent,
  12. List<Widget> slivers = const <Widget>[],
  13. int? semanticChildCount,
  14. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  15. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  16. String? restorationId,
  17. Clip clipBehavior = Clip.hardEdge}
)

Creates a ScrollView that creates custom scroll effects using slivers.

See the ScrollView constructor for more details on these arguments.

Implementation

const CustomScrollView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.scrollBehavior,
  super.shrinkWrap,
  super.center,
  super.anchor,
  super.cacheExtent,
  this.slivers = const <Widget>[],
  super.semanticChildCount,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
});