CustomShrinkWrappingViewport constructor

CustomShrinkWrappingViewport({
  1. Key? key,
  2. AxisDirection axisDirection = AxisDirection.down,
  3. AxisDirection? crossAxisDirection,
  4. double anchor = 0.0,
  5. required ViewportOffset offset,
  6. List<RenderSliver>? children,
  7. Key? center,
  8. double? cacheExtent,
  9. List<Widget> slivers = const <Widget>[],
})

Creates a widget that is bigger on the inside and shrink wraps its children in the main axis.

The viewport listens to the offset, which means you do not need to rebuild this widget when the offset changes.

The offset argument must not be null.

Implementation

CustomShrinkWrappingViewport({
  super.key,
  super.axisDirection,
  super.crossAxisDirection,
  double anchor = 0.0,
  required super.offset,
  List<RenderSliver>? children,
  super.center,
  super.cacheExtent,
  super.slivers,
}) : _anchor = anchor;