NumberPickerDialog.decimal constructor

const NumberPickerDialog.decimal({
  1. required int minValue,
  2. required int maxValue,
  3. required double initialDoubleValue,
  4. Key? key,
  5. int decimalPlaces = 1,
  6. Widget? title,
  7. EdgeInsets? titlePadding,
  8. bool highlightSelectedValue = true,
  9. Decoration? decoration,
  10. TextMapper? textMapper,
  11. bool haptics = false,
  12. Widget? confirmWidget,
  13. Widget? cancelWidget,
  14. bool isShowMonthName = false,
  15. bool isJalali = false,
})

Implementation

const NumberPickerDialog.decimal({
  required this.minValue,
  required this.maxValue,
  required this.initialDoubleValue,
  super.key,
  this.decimalPlaces = 1,
  this.title,
  this.titlePadding,
  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"),
      initialIntegerValue = -1,
      step = 1,
      infiniteLoop = false,
      zeroPad = false;