Product class
Constructors
-
Product.new({required String productId, String? name, String? subtitle, String? description, String? currency, String? mainProductImage, bool? isAvailable, bool? isDisabled, bool? hidePrice, String? customCTATitleTranslation, bool? hidePrimaryCTA, String? customCTATarget, String? customCTAUrl, String? customCTATitle, List<
ProductUnit> ? units})
Properties
- currency ↔ String?
-
The currency code of the product (e.g. "USD").
getter/setter pair
- customCTATarget ↔ String?
-
Custom CTA target identifier.
getter/setter pair
- customCTATitle ↔ String?
-
Custom CTA title.
getter/setter pair
- customCTATitleTranslation ↔ String?
-
Custom CTA title translation key.
getter/setter pair
- customCTAUrl ↔ String?
-
Custom CTA URL.
getter/setter pair
- description ↔ String?
-
The description of the product.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether the product is hidden from the product list.
When null, the SDK keeps its original value.
getter/setter pair
- hidePrice ↔ bool?
-
Whether to hide the price.
getter/setter pair
- hidePrimaryCTA ↔ bool?
-
Whether to hide the primary CTA button.
getter/setter pair
- isAvailable ↔ bool?
-
The availability of the product.
When null, the SDK keeps its original value.
getter/setter pair
- isDisabled ↔ bool?
-
Whether the product is disabled.
getter/setter pair
- mainProductImage ↔ String?
-
The main product image URL.
getter/setter pair
- name ↔ String?
-
The name of the product.
getter/setter pair
- productId ↔ String
-
A unique identifier of the product.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle ↔ String?
-
The subtitle of the product.
getter/setter pair
-
units
↔ List<
ProductUnit> ? -
The unit array of the product
getter/setter pair
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