WheelChooser<T>.custom constructor

WheelChooser<T>.custom({
  1. required dynamic onValueChanged(
    1. dynamic
    )?,
  2. required List<Widget>? children,
  3. dynamic onChoiceChanged(
    1. dynamic
    )?,
  4. List? datas,
  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.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;