ProductEvent class

A representation of a product-related event, such as viewing, adding, removing or buying a product.

Constructors

ProductEvent(String eventType, BasketItem item)
Creates a new ProductEvent with the specified eventType and item.
const

Properties

eventType String
The type of the event, such as "c_add", "c_rmv", "buy", or "view".
final
hashCode int
The hash code for this object.
no setterinherited
item BasketItem
The product item associated with this event.
final
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