addPurchasedProduct method

void addPurchasedProduct(
  1. String key,
  2. Purchase purchase
)

Adds a purchased product to the cache

Implementation

void addPurchasedProduct(String key, Purchase purchase) {
  _purchasedProducts[key] = purchase;
}