CustomScrollView constructor

const CustomScrollView({Key key, Axis scrollDirection: Axis.vertical, bool reverse: false, ScrollController controller, bool primary, ScrollPhysics physics, bool shrinkWrap: false, double cacheExtent, List<Widget> slivers: const [], int semanticChildCount })

Creates a ScrollView that creates custom scroll effects using slivers.

If the primary argument is true, the controller must be null.

Implementation

const CustomScrollView({
  Key key,
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController controller,
  bool primary,
  ScrollPhysics physics,
  bool shrinkWrap = false,
  double cacheExtent,
  this.slivers = const <Widget>[],
  int semanticChildCount,
}) : super(
  key: key,
  scrollDirection: scrollDirection,
  reverse: reverse,
  controller: controller,
  primary: primary,
  physics: physics,
  shrinkWrap: shrinkWrap,
  cacheExtent: cacheExtent,
  semanticChildCount: semanticChildCount,
);