NumberPickerDialog.integer constructor

const NumberPickerDialog.integer({
  1. required int minValue,
  2. required int maxValue,
  3. required int initialIntegerValue,
  4. Key? key,
  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

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