RenderShrinkWrappingViewport constructor Null safety

RenderShrinkWrappingViewport(
  1. {AxisDirection axisDirection = AxisDirection.down,
  2. required AxisDirection crossAxisDirection,
  3. required ViewportOffset offset,
  4. Clip clipBehavior = Clip.hardEdge,
  5. List<RenderSliver>? children}
)

Creates a viewport (for RenderSliver objects) that shrink-wraps its contents.

The offset must be specified. For testing purposes, consider passing a ViewportOffset.zero or ViewportOffset.fixed.

Implementation

RenderShrinkWrappingViewport({
  super.axisDirection,
  required super.crossAxisDirection,
  required super.offset,
  super.clipBehavior,
  List<RenderSliver>? children,
}) {
  addAll(children);
}