RenderShrinkWrappingViewport constructor
- AxisDirection axisDirection = AxisDirection.down,
- required AxisDirection crossAxisDirection,
- required ViewportOffset offset,
- Clip clipBehavior = Clip.hardEdge,
- 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);
}