NumberPickerDialog.decimal constructor
NumberPickerDialog.decimal({
- required int minValue,
- required int maxValue,
- required double initialDoubleValue,
- int decimalPlaces = 1,
- Widget? title,
- EdgeInsets? titlePadding,
- bool highlightSelectedValue = true,
- Decoration? decoration,
- TextMapper? textMapper,
- bool haptics = false,
- Widget? confirmWidget,
- Widget? cancelWidget,
- bool isShowMonthName = false,
- 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;