RenderNestedScrollViewViewport constructor Null safety

RenderNestedScrollViewViewport(
  1. {AxisDirection axisDirection = AxisDirection.down,
  2. required AxisDirection crossAxisDirection,
  3. required ViewportOffset offset,
  4. double anchor = 0.0,
  5. List<RenderSliver>? children,
  6. RenderSliver? center,
  7. required SliverOverlapAbsorberHandle handle,
  8. Clip clipBehavior = Clip.hardEdge}
)

Create a variant of RenderViewport that has a SliverOverlapAbsorberHandle.

The handle must not be null.

Implementation

RenderNestedScrollViewViewport({
  AxisDirection axisDirection = AxisDirection.down,
  required AxisDirection crossAxisDirection,
  required ViewportOffset offset,
  double anchor = 0.0,
  List<RenderSliver>? children,
  RenderSliver? center,
  required SliverOverlapAbsorberHandle handle,
  Clip clipBehavior = Clip.hardEdge,
}) : assert(handle != null),
     _handle = handle,
     super(
       axisDirection: axisDirection,
       crossAxisDirection: crossAxisDirection,
       offset: offset,
       anchor: anchor,
       children: children,
       center: center,
       clipBehavior: clipBehavior,
     );