hasPurchasedProduct method

bool hasPurchasedProduct(
  1. String productId
)

Implementation

bool hasPurchasedProduct(String productId) {
  return purchases
      .where((element) => element.enabled)
      .any((purchase) => purchase.productId == productId);
}