ECommerce class
Class for creating E-Commerce events of various types.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
addCartItemEvent(
ECommerceCartItem cartItem) → ECommerceEvent - Creates an E-Commerce event AddCartItemEvent.
-
beginCheckoutEvent(
ECommerceOrder order) → ECommerceEvent - Creates E-Commerce events BeginCheckoutEvent. Use it to inform about the start of the purchase.
-
purchaseEvent(
ECommerceOrder order) → ECommerceEvent - Creates E-Commerce PurchaseEvent events. Use it to inform about the completion of the purchase.
-
removeCartItemEvent(
ECommerceCartItem cartItem) → ECommerceEvent - Creates E-Commerce RemoveCartItemEvent events. Use it to report the removal of an item from the cart.
-
showProductCardEvent(
ECommerceProduct product, ECommerceScreen screen) → ECommerceEvent - Creates an E-Commerce event ShowProductCardEvent.
-
showProductDetailsEvent(
ECommerceProduct product, ECommerceReferrer? referrer) → ECommerceEvent - Creates an E-Commerce event ShowProductDetailsEvent.
-
showScreenEvent(
ECommerceScreen screen) → ECommerceEvent - Creates E-Commerce ShowScreenEvent events.