TrolleyQuantity constructor

const TrolleyQuantity({
  1. Key? key,
  2. TextStyle? quantityStyle,
  3. Color? iconColor,
  4. double? iconSize,
  5. EdgeInsetsGeometry? iconPadding,
  6. Color? iconBackgroundColor,
  7. Color? backgroundQuantityColor,
  8. Direction quantityCardDirection = Direction.vertical,
  9. required CartItem cartItem,
  10. bool deleteItemWhenQuantityIsZero = true,
  11. Function? onQuantityIsZero,
  12. Function? onDecreaseQuantityToZero,
})

Implementation

const TrolleyQuantity({
  Key? key,
  this.quantityStyle,
  this.iconColor,
  this.iconSize,
  this.iconPadding,
  this.iconBackgroundColor,
  this.backgroundQuantityColor,
  this.quantityCardDirection = Direction.vertical,
  required this.cartItem,
  this.deleteItemWhenQuantityIsZero = true,
  this.onQuantityIsZero,
  this.onDecreaseQuantityToZero,
}) : super(key: key);