CatalogDiscountType enum
Indicates how to apply a CatalogDiscount to a CatalogItem.
Constructors
- CatalogDiscountType()
-
const
Values
- fixedPercentage → const CatalogDiscountType
-
Apply the discount as a fixed percentage (e.g., 5%) off the item price.
- fixedAmount → const CatalogDiscountType
-
Apply the discount as a fixed amount (e.g., $1.00) off the item price.
- variablePercentage → const CatalogDiscountType
-
Apply the discount as a variable percentage off the item price. The percentage will be specified at the time of sale.
- variableAmount → const CatalogDiscountType
-
Apply the discount as a variable amount off the item price. The amount will be specified at the time of sale.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CatalogDiscountType> - A constant List of the values in this enum, in order of their declaration.