CircleListScrollView constructor
CircleListScrollView({
- Key? key,
- ScrollController? controller,
- ScrollPhysics? physics,
- required double itemExtent,
- ValueChanged<
int> ? onSelectedItemChanged, - bool clipToSize = true,
- bool renderChildrenOutsideViewport = false,
- required List<
Widget> children, - Axis axis = Axis.vertical,
- double radius = 100,
Constructs a list in which children are scrolled a wheel. Its children are passed to a delegate and lazily built during layout.
Implementation
CircleListScrollView({
Key? key,
this.controller,
this.physics,
required this.itemExtent,
this.onSelectedItemChanged,
this.clipToSize = true,
this.renderChildrenOutsideViewport = false,
required List<Widget> children,
this.axis = Axis.vertical,
this.radius = 100,
}) : assert(itemExtent > 0),
assert(
!renderChildrenOutsideViewport || !clipToSize,
RenderCircleListViewport
.clipToSizeAndRenderChildrenOutsideViewportConflict,
),
childDelegate = CircleListChildListDelegate(children: children),
super(key: key);