ProductVariant class
E-commerce product variant (e.g. Size/Color SKU).
Constructors
-
ProductVariant({required String sku, required String name, required double price, double? salePrice, ItemAvailability availability = ItemAvailability.inStock, Map<
String, String> attributes = const {}, String? image}) -
const
Properties
-
attributes
→ Map<
String, String> -
final
- availability → ItemAvailability
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String?
-
final
- name → String
-
final
- price → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salePrice → double?
-
final
- sku → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJsonLd(
String currency) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited