WheelChooser<T>.choices constructor
WheelChooser<T>.choices ({
- required dynamic onChoiceChanged(
- dynamic
- required List<
WheelChoice> ? choices, - TextStyle? selectTextStyle,
- TextStyle? unSelectTextStyle,
- int? startPosition = 0,
- double squeeze = 1.0,
- double itemSize = _defaultItemSize,
- double magnification = 1,
- double perspective = 0.01,
- double? listWidth,
- double? listHeight,
- FixedExtentScrollController? controller,
- bool horizontal = false,
- bool isInfinite = false,
- ScrollPhysics? physics,
Implementation
WheelChooser.choices({
required this.onChoiceChanged,
required this.choices,
this.selectTextStyle,
this.unSelectTextStyle,
this.startPosition = 0,
this.squeeze = 1.0,
this.itemSize = _defaultItemSize,
this.magnification = 1,
this.perspective = 0.01,
this.listWidth,
this.listHeight,
this.controller,
this.horizontal = false,
this.isInfinite = false,
this.physics,
}) : assert(perspective <= 0.01),
assert(controller == null || startPosition == null),
children = null, datas = null, onValueChanged = null;