addProductBoughtEvent method

void addProductBoughtEvent(
  1. BasketItem item
)

Adds a product event indicating a product was purchased.

Implementation

void addProductBoughtEvent(BasketItem item) {
  _productEvents.add(ProductEvent("buy", item));
}