WheelChooser<T> constructor
WheelChooser<T> ({
- required dynamic onValueChanged(
- dynamic
- required List? datas,
- 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({
required this.onValueChanged,
required this.datas,
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, choices = null, onChoiceChanged = null;