IncrementDecrementWidget.flat constructor
IncrementDecrementWidget.flat({})
Implementation
factory IncrementDecrementWidget.flat({
required int quantity,
required int maxQuantity,
required int minValue,
required void Function() onIncrement,
required void Function() onDecrement,
Color? backgroundColor,
Color? iconColor,
}) {
return IncrementDecrementWidget(
quantity: quantity,
maxQuantity: maxQuantity,
minValue: minValue,
onIncrement: onIncrement,
onDecrement: onDecrement,
backgroundColor: backgroundColor,
iconColor: iconColor,
elevation: 0.0,
// Flat design, no elevation
margin: const EdgeInsets.all(8.0),
);
}