CircleListScrollView constructor

CircleListScrollView({
  1. Key? key,
  2. ScrollController? controller,
  3. ScrollPhysics? physics,
  4. required double itemExtent,
  5. ValueChanged<int>? onSelectedItemChanged,
  6. bool clipToSize = true,
  7. bool renderChildrenOutsideViewport = false,
  8. required List<Widget> children,
  9. Axis axis = Axis.vertical,
  10. 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);