STRAnalyticProduct class
A product involved in a Storyly Analytics event.
Mirrors the native STRAnalyticProduct. Pass one or more instances to
STRAnalytics.track alongside an STRAnalyticProductEvent.
Constructors
Properties
- currency → String?
-
The currency code of price and salesPrice (e.g. "USD"), or
nullif not provided.final - desc → String?
-
An optional description of the product.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- price → double
-
The original (regular) price of the product.
final
- productGroupId → String
-
The unique identifier of the product group this product belongs to.
final
- productId → String
-
The unique identifier of the product (e.g. SKU or product feed ID).
final
- quantity → int
-
The number of units of this product involved in the event. Defaults to
1.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salesPrice → double?
-
The discounted/sale price of the product, or
nullif not on sale.final - title → String
-
The display title or name of the product.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited