CircleListScrollView.useDelegate constructor

const CircleListScrollView.useDelegate({
  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 CircleListChildDelegate childDelegate,
  9. Axis axis = Axis.vertical,
  10. double radius = 100,
})

Constructs a list in which children are scrolled a wheel. Its children are managed by a delegate and are lazily built during layout.

Implementation

const CircleListScrollView.useDelegate({
  Key? key,
  this.controller,
  this.physics,
  required this.itemExtent,
  this.onSelectedItemChanged,
  this.clipToSize = true,
  this.renderChildrenOutsideViewport = false,
  required this.childDelegate,
  this.axis = Axis.vertical,
  this.radius = 100,
})  : assert(itemExtent > 0),
      assert(
        !renderChildrenOutsideViewport || !clipToSize,
        RenderCircleListViewport
            .clipToSizeAndRenderChildrenOutsideViewportConflict,
      ),
      super(key: key);