NumberPickerDialog.integer constructor

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

Implementation

NumberPickerDialog.integer({
  super.key,
  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;