ListWheelScrollView constructor

ListWheelScrollView({Key key, ScrollController controller, ScrollPhysics physics, double diameterRatio: RenderListWheelViewport.defaultDiameterRatio, double perspective: RenderListWheelViewport.defaultPerspective, double offAxisFraction: 0.0, bool useMagnifier: false, double magnification: 1.0, @required double itemExtent, ValueChanged<int> onSelectedItemChanged, bool clipToSize: true, bool renderChildrenOutsideViewport: false, @required List<Widget> children })

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

Implementation

ListWheelScrollView({
  Key key,
  this.controller,
  this.physics,
  this.diameterRatio = RenderListWheelViewport.defaultDiameterRatio,
  this.perspective = RenderListWheelViewport.defaultPerspective,
  this.offAxisFraction = 0.0,
  this.useMagnifier = false,
  this.magnification = 1.0,
  @required this.itemExtent,
  this.onSelectedItemChanged,
  this.clipToSize = true,
  this.renderChildrenOutsideViewport = false,
  @required List<Widget> children,
}) : assert(children != null),
     assert(diameterRatio != null),
     assert(diameterRatio > 0.0, RenderListWheelViewport.diameterRatioZeroMessage),
     assert(perspective != null),
     assert(perspective > 0),
     assert(perspective <= 0.01, RenderListWheelViewport.perspectiveTooHighMessage),
     assert(magnification > 0),
     assert(itemExtent != null),
     assert(itemExtent > 0),
     assert(clipToSize != null),
     assert(renderChildrenOutsideViewport != null),
     assert(
       !renderChildrenOutsideViewport || !clipToSize,
       RenderListWheelViewport.clipToSizeAndRenderChildrenOutsideViewportConflict,
     ),
     childDelegate = ListWheelChildListDelegate(children: children),
     super(key: key);