ECommerceCartItem class

Class with information about the product in the cart:

  • product - product;
  • quantity - quantity of the product, numeric value;
  • revenue — the total price of the product in the basket;
  • referrer — the source of the transition to the basket.

Constructors

ECommerceCartItem({required ECommerceProduct product, required Decimal quantity, required ECommercePrice revenue, ECommerceReferrer? referrer})
Creates an object with information about the product in the cart. The parameters product, quantity, revenue are required.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
product ECommerceProduct
final
quantity → Decimal
final
referrer ECommerceReferrer?
final
revenue ECommercePrice
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