addProductEvent method

void addProductEvent(
  1. BasketItem item,
  2. String eventType
)

Adds a custom product event with a specific eventType.

Implementation

void addProductEvent(BasketItem item, String eventType) {
  _productEvents.add(ProductEvent(eventType, item));
}