NumberPicker constructor

const NumberPicker({
  1. Key? key,
  2. required int minValue,
  3. required int maxValue,
  4. required int value,
  5. required ValueChanged<int> onChanged,
  6. int itemCount = 3,
  7. int step = 1,
  8. double itemHeight = 50,
  9. double itemWidth = 100,
  10. Axis axis = Axis.vertical,
  11. TextStyle? textStyle,
  12. TextStyle? selectedTextStyle,
  13. bool haptics = false,
  14. Decoration? decoration,
  15. bool zeroPad = false,
  16. TextMapper? textMapper,
  17. bool infiniteLoop = false,
})

Implementation

const NumberPicker({
  Key? key,
  required this.minValue,
  required this.maxValue,
  required this.value,
  required this.onChanged,
  this.itemCount = 3,
  this.step = 1,
  this.itemHeight = 50,
  this.itemWidth = 100,
  this.axis = Axis.vertical,
  this.textStyle,
  this.selectedTextStyle,
  this.haptics = false,
  this.decoration,
  this.zeroPad = false,
  this.textMapper,
  this.infiniteLoop = false,
})  : assert(minValue <= value),
      assert(value <= maxValue),
      super(key: key);