DecimalNumberPicker constructor

const DecimalNumberPicker({
  1. Key? key,
  2. required double initialValue,
  3. required int minValue,
  4. required int maxValue,
  5. required int decimalPrecision,
  6. required ValueChanged<double> onChanged,
  7. double? integerPartSize,
  8. double? decimalPartSize,
  9. BoxDecoration? pickedItemDecoration,
  10. BoxDecoration? otherItemsDecoration,
  11. TextStyle? pickedItemTextStyle,
  12. 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);