NumberPickerDialog.integer constructor
NumberPickerDialog.integer({
- required int minValue,
- required int maxValue,
- required int initialIntegerValue,
- Widget? title,
- EdgeInsets? titlePadding,
- int step = 1,
- bool infiniteLoop = false,
- bool zeroPad = false,
- bool highlightSelectedValue = true,
- Decoration? decoration,
- TextMapper? textMapper,
- bool haptics = false,
- Widget? confirmWidget,
- Widget? cancelWidget,
- bool isShowMonthName = false,
- bool isJalali = false,
constructor for integer values
Implementation
NumberPickerDialog.integer({
required this.minValue,
required this.maxValue,
required this.initialIntegerValue,
this.title,
this.titlePadding,
this.step = 1,
this.infiniteLoop = false,
this.zeroPad = false,
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"),
decimalPlaces = 0,
initialDoubleValue = -1.0;