hasCredit method

bool hasCredit()

Implementation

bool hasCredit() {
  if (PurchaseHelper.isPremium) {
    return true;
  }
  var has = credits > 0;

  if (!has) {
    PurchaseHelper.showPaywall(analyticKey: "no_credits_$creditKey");
  }
  return has;
}