WheelChooser<T>.byController constructor

WheelChooser<T>.byController({
  1. required FixedExtentScrollController controller,
  2. required dynamic onValueChanged(
    1. dynamic
    )?,
  3. required List? datas,
  4. TextStyle? selectTextStyle,
  5. TextStyle? unSelectTextStyle,
  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. bool horizontal = false,
  13. bool isInfinite = false,
  14. 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;