WheelChooser<T>.custom constructor
WheelChooser<T>.custom ({
- required dynamic onValueChanged(
- dynamic
- required List<
Widget> ? children, - dynamic onChoiceChanged(
- dynamic
- List? datas,
- 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.custom({
required this.onValueChanged,
required this.children,
this.onChoiceChanged,
this.datas,
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(datas == null || datas.length == children!.length),
assert(controller == null || startPosition == null),
selectTextStyle = null,
unSelectTextStyle = null, choices = null;