ECommerceCartItem constructor

const ECommerceCartItem({
  1. required ECommerceProduct product,
  2. required Decimal quantity,
  3. required ECommercePrice revenue,
  4. ECommerceReferrer? referrer,
})

Creates an object with information about the product in the cart. The parameters product, quantity, revenue are required.

Implementation

const ECommerceCartItem(
    {required this.product,
    required this.quantity,
    required this.revenue,
    this.referrer});