showPaywall static method

void showPaywall({
  1. dynamic analyticKey = "",
})

Implementation

static void showPaywall({analyticKey = ""}) async {
  if (kDebugMode && !DEBUG) {
    return;
  }

  if (isPremium) {
    return;
  }

  if (products.isEmpty) {
    return;
  }

  PurchaseHelper.setAnalyticData("paywall_location", analyticKey);

  logEvent("paywall_showed_$analyticKey");

  Get.to(() => Paywall1(), transition: Transition.downToUp);
}