WheelChooser<T>.choices constructor

WheelChooser<T>.choices({
  1. required dynamic onChoiceChanged(
    1. dynamic
    )?,
  2. required List<WheelChoice>? choices,
  3. TextStyle? selectTextStyle,
  4. TextStyle? unSelectTextStyle,
  5. int? startPosition = 0,
  6. double squeeze = 1.0,
  7. double itemSize = _defaultItemSize,
  8. double magnification = 1,
  9. double perspective = 0.01,
  10. double? listWidth,
  11. double? listHeight,
  12. FixedExtentScrollController? controller,
  13. bool horizontal = false,
  14. bool isInfinite = false,
  15. 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;