CustomNumberPicker<T extends num> constructor

CustomNumberPicker<T extends num>({
  1. Key? key,
  2. ShapeBorder? shape,
  3. TextStyle? valueTextStyle,
  4. required dynamic onValue(
    1. T
    ),
  5. required T initialValue,
  6. required T maxValue,
  7. required T minValue,
  8. required T step,
  9. Widget? customAddButton,
  10. Widget? customMinusButton,
  11. bool enable = true,
})

Implementation

CustomNumberPicker(
    {Key? key,
    this.shape,
    this.valueTextStyle,
    required this.onValue,
    required this.initialValue,
    required this.maxValue,
    required this.minValue,
    required this.step,
    this.customAddButton,
    this.customMinusButton,
    this.enable = true})
    : assert(initialValue.runtimeType != String),
      assert(maxValue.runtimeType == initialValue.runtimeType),
      assert(minValue.runtimeType == initialValue.runtimeType),
      super(key: key);