CartStepper<VM extends num> constructor

const CartStepper<VM extends num>({
  1. Key? key,
  2. VM? value,
  3. @Deprecated('use value instead') VM? count,
  4. VM? stepper,
  5. required ValueChanged<VM> didChangeCount,
  6. double size = 30.0,
  7. Axis axis = Axis.horizontal,
  8. double numberSize = 3,
  9. NumberFormat? format,
  10. TextInputType? editKeyboardType,
  11. double? elevation,
  12. bool alwaysExpanded = false,
  13. CartStepperStyle? style,
})

Implementation

const CartStepper({
  Key? key,

  /// value
  VM? value,
  @Deprecated('use value instead') VM? count,

  /// step value
  VM? stepper,
  required this.didChangeCount,
  this.size = 30.0,
  this.axis = Axis.horizontal,
  this.numberSize = 3,
  this.format,
  this.editKeyboardType,
  this.elevation,
  this.alwaysExpanded = false,
  this.style,
})  : _value = (value ?? count ?? (0 is VM ? 0 : 0.0)) as VM,
      _stepper = (stepper ?? (0 is VM ? 1 : 1.0)) as VM,
      super(key: key);