TrolleyQuantity constructor
const
TrolleyQuantity({
- Key? key,
- TextStyle? quantityStyle,
- Color? iconColor,
- double? iconSize,
- EdgeInsetsGeometry? iconPadding,
- Color? iconBackgroundColor,
- Color? backgroundQuantityColor,
- Direction quantityCardDirection = Direction.vertical,
- required CartItem cartItem,
- bool deleteItemWhenQuantityIsZero = true,
- Function? onQuantityIsZero,
- 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);