NumberPickerDialog.decimal constructor

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

constructor for decimal values

Implementation

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