DecimalNumberPicker constructor
const
DecimalNumberPicker({
- Key? key,
- required double initialValue,
- required int minValue,
- required int maxValue,
- required int decimalPrecision,
- required ValueChanged<
double> onChanged, - double? integerPartSize,
- double? decimalPartSize,
- BoxDecoration? pickedItemDecoration,
- BoxDecoration? otherItemsDecoration,
- TextStyle? pickedItemTextStyle,
- TextStyle? otherItemsTextStyle,
Implementation
const DecimalNumberPicker({
Key? key,
required this.initialValue,
required this.minValue,
required this.maxValue,
required this.decimalPrecision,
required this.onChanged,
this.integerPartSize,
this.decimalPartSize,
this.pickedItemDecoration,
this.otherItemsDecoration,
this.pickedItemTextStyle,
this.otherItemsTextStyle,
}) : assert(initialValue < maxValue),
assert(initialValue >= minValue),
assert(minValue < maxValue),
super(key: key);