NestedScrollViewViewport constructor Null safety

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({
  super.key,
  super.axisDirection,
  super.crossAxisDirection,
  super.anchor,
  required super.offset,
  super.center,
  super.slivers,
  required this.handle,
  super.clipBehavior,
}) : assert(handle != null);