CustomScrollView constructor

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

Creates a ScrollViewCustom that creates custom scroll effects using slivers.

See the ScrollViewCustom constructor for more details on these arguments.

Implementation

CustomScrollView({
  required ScrollViewProperties properties,
  Key? key,
  ScrollPhysics? physics,
  ScrollBehavior? scrollBehavior,
  bool shrinkWrap = false,
  Key? center,
  double anchor = 0.0,
  double? cacheExtent,
  this.slivers = const <Widget>[],
  int? semanticChildCount,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  String? restorationId,
  Clip clipBehavior = Clip.hardEdge,
}) : super(
        properties: properties,
        key: key,
        physics: physics,
        scrollBehavior: scrollBehavior,
        shrinkWrap: shrinkWrap,
        center: center,
        anchor: anchor,
        cacheExtent: cacheExtent,
        semanticChildCount: semanticChildCount,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );