CartStepper<VM extends num> constructor
const
CartStepper<VM extends num> ({
- Key? key,
- VM? value,
- @Deprecated('use value instead') VM? count,
- VM? stepper,
- required ValueChanged<
VM> didChangeCount, - double size = 30.0,
- Axis axis = Axis.horizontal,
- double numberSize = 3,
- NumberFormat? format,
- TextInputType? editKeyboardType,
- double? elevation,
- bool alwaysExpanded = false,
- 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);