IncrementDecrementWidget constructor
const
IncrementDecrementWidget({
- Key? key,
- required int quantity,
- required int maxQuantity,
- required int minValue,
- required void onIncrement(),
- required void onDecrement(),
- Color? backgroundColor,
- Color? iconColor,
- double? elevation = 0.0,
- EdgeInsetsGeometry margin = const EdgeInsets.all(5),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 5),
- TextStyle? quantityTextStyle,
Implementation
const IncrementDecrementWidget({
super.key,
required this.quantity,
required this.maxQuantity,
required this.minValue,
required this.onIncrement,
required this.onDecrement,
this.backgroundColor,
this.iconColor,
this.elevation = 0.0,
this.margin = const EdgeInsets.all(5),
this.padding = const EdgeInsets.symmetric(horizontal: 5),
this.quantityTextStyle,
});