NumberPickerDialog.integer constructor

NumberPickerDialog.integer({
  1. required int minValue,
  2. required int maxValue,
  3. required int initialIntegerValue,
  4. Widget? title,
  5. EdgeInsets? titlePadding,
  6. int step = 1,
  7. bool infiniteLoop = false,
  8. bool zeroPad = false,
  9. bool highlightSelectedValue = true,
  10. Decoration? decoration,
  11. TextMapper? textMapper,
  12. bool haptics = false,
  13. Widget? confirmWidget,
  14. Widget? cancelWidget,
  15. bool isShowMonthName = false,
  16. bool isJalali = false,
})

constructor for integer values

Implementation

NumberPickerDialog.integer({
  required this.minValue,
  required this.maxValue,
  required this.initialIntegerValue,
  this.title,
  this.titlePadding,
  this.step = 1,
  this.infiniteLoop = false,
  this.zeroPad = false,
  this.highlightSelectedValue = true,
  this.decoration,
  this.textMapper,
  this.haptics = false,
  Widget? confirmWidget,
  Widget? cancelWidget,
  this.isShowMonthName = false,
  this.isJalali = false,
})  : confirmWidget = confirmWidget ?? Text("OK"),
      cancelWidget = cancelWidget ?? Text("CANCEL"),
      decimalPlaces = 0,
      initialDoubleValue = -1.0;