RenderCircleListViewport constructor
RenderCircleListViewport({
- required CircleListChildManager childManager,
- required ViewportOffset offset,
- required double itemExtent,
- required Axis axis,
- double radius = 100,
- bool clipToSize = true,
- bool renderChildrenOutsideViewport = false,
- 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);
}