NumberPicker constructor
const
NumberPicker({
- Key? key,
- required int minValue,
- required int maxValue,
- required int value,
- required ValueChanged<
int> onChanged, - int itemCount = 3,
- int step = 1,
- double itemHeight = 50,
- double itemWidth = 100,
- Axis axis = Axis.vertical,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- bool haptics = false,
- Decoration? decoration,
- bool zeroPad = false,
- TextMapper? textMapper,
- bool infiniteLoop = false,
Implementation
const NumberPicker({
Key? key,
required this.minValue,
required this.maxValue,
required this.value,
required this.onChanged,
this.itemCount = 3,
this.step = 1,
this.itemHeight = 50,
this.itemWidth = 100,
this.axis = Axis.vertical,
this.textStyle,
this.selectedTextStyle,
this.haptics = false,
this.decoration,
this.zeroPad = false,
this.textMapper,
this.infiniteLoop = false,
}) : assert(minValue <= value),
assert(value <= maxValue),
super(key: key);