IncrementDecrementWidget constructor

const IncrementDecrementWidget({
  1. Key? key,
  2. required int quantity,
  3. required int maxQuantity,
  4. required int minValue,
  5. required void onIncrement(),
  6. required void onDecrement(),
  7. Color? backgroundColor,
  8. Color? iconColor,
  9. double? elevation = 0.0,
  10. EdgeInsetsGeometry margin = const EdgeInsets.all(5),
  11. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 5),
  12. 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,
});