NumberPickerDialog.decimal constructor

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

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