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