RenderCircleListViewport constructor

RenderCircleListViewport({
  1. required CircleListChildManager childManager,
  2. required ViewportOffset offset,
  3. required double itemExtent,
  4. required Axis axis,
  5. double radius = 100,
  6. bool clipToSize = true,
  7. bool renderChildrenOutsideViewport = false,
  8. List<RenderBox>? children,
})

Creates a RenderCircleListViewport which renders children on a wheel.

All arguments must not be null. Optional arguments have reasonable defaults.

Implementation

RenderCircleListViewport({
  required this.childManager,
  required ViewportOffset offset,
  required double itemExtent,
  required Axis axis,
  double radius = 100,
  bool clipToSize = true,
  bool renderChildrenOutsideViewport = false,
  List<RenderBox>? children,
})  : assert(itemExtent > 0),
      assert(
        !renderChildrenOutsideViewport || !clipToSize,
        clipToSizeAndRenderChildrenOutsideViewportConflict,
      ),
      _axis = axis,
      _radius = radius,
      _offset = offset,
      _itemExtent = itemExtent,
      _clipToSize = clipToSize,
      _renderChildrenOutsideViewport = renderChildrenOutsideViewport {
  addAll(children);
}