CartButton<VM extends num> constructor
const
CartButton<VM extends num> ({
- Key? key,
- VM? value,
- @Deprecated('use value instead') VM? count,
- VM? stepper,
- required ValueChanged<
VM> onChanged, - double size = 30.0,
- Axis axis = Axis.horizontal,
- double numberSize = 3,
- TextInputType? editKeyboardType,
- double? elevation,
- CartButtonStyle? style,
- Widget? defaultWidget,
- VoidCallback? onDefaultWidgetTapped,
Implementation
const CartButton({
Key? key,
VM? value,
@Deprecated('use value instead') VM? count,
VM? stepper,
required this.onChanged,
this.size = 30.0,
this.axis = Axis.horizontal,
this.numberSize = 3,
this.editKeyboardType,
this.elevation,
this.style,
this.defaultWidget,
this.onDefaultWidgetTapped, // Add the onDefaultWidgetTapped callback
}) : _value = (value ?? count ?? 0) as VM,
_stepper = (stepper ?? 1) as VM,
super(key: key);