NestedScrollViewViewport constructor

NestedScrollViewViewport({
  1. Key? key,
  2. AxisDirection axisDirection = AxisDirection.down,
  3. AxisDirection? crossAxisDirection,
  4. double anchor = 0.0,
  5. required ViewportOffset offset,
  6. Key? center,
  7. List<Widget> slivers = const <Widget>[],
  8. required SliverOverlapAbsorberHandle handle,
  9. Clip clipBehavior = Clip.hardEdge,
})

Creates a variant of Viewport that has a SliverOverlapAbsorberHandle.

The handle must not be null.

Implementation

NestedScrollViewViewport({
  Key? key,
  AxisDirection axisDirection = AxisDirection.down,
  AxisDirection? crossAxisDirection,
  double anchor = 0.0,
  required ViewportOffset offset,
  Key? center,
  List<Widget> slivers = const <Widget>[],
  required this.handle,
  Clip clipBehavior = Clip.hardEdge,
}) : assert(handle != null),
      super(
      key: key,
      axisDirection: axisDirection,
      crossAxisDirection: crossAxisDirection,
      anchor: anchor,
      offset: offset,
      center: center,
      slivers: slivers,
      clipBehavior: clipBehavior,
    );