showPaywall static method
void
showPaywall({
- 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);
}