RenderShrinkWrappingViewport constructor

RenderShrinkWrappingViewport({AxisDirection axisDirection: AxisDirection.down, @required AxisDirection crossAxisDirection, @required ViewportOffset offset, 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 new ViewportOffset.zero or new ViewportOffset.fixed.

Implementation

RenderShrinkWrappingViewport({
  AxisDirection axisDirection = AxisDirection.down,
  @required AxisDirection crossAxisDirection,
  @required ViewportOffset offset,
  List<RenderSliver> children,
}) : super(axisDirection: axisDirection, crossAxisDirection: crossAxisDirection, offset: offset) {
  addAll(children);
}