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