AddToCartButton constructor
const
AddToCartButton({
- Key? key,
- Duration duration = const Duration(milliseconds: 3000),
- required Widget trolley,
- required Widget text,
- required Widget check,
- required dynamic onPressed(),
- BorderRadius? borderRadius,
- Color? backgroundColor,
- double streetLineHeight = 2,
- double streetLineDashWidth = 12,
- double trolleyLeftMargin = 12,
- AddToCartButtonStateId stateId = AddToCartButtonStateId.idle,
Constructor Create an Add To Cart button.
Implementation
const AddToCartButton({
Key? key,
this.duration: const Duration(milliseconds: 3000),
required this.trolley,
required this.text,
required this.check,
required this.onPressed,
this.borderRadius,
this.backgroundColor,
this.streetLineHeight: 2,
this.streetLineDashWidth: 12,
this.trolleyLeftMargin: 12,
this.stateId = AddToCartButtonStateId.idle,
}) : super(key: key);