showAdmobInterstitialCounter static method
Implementation
static void showAdmobInterstitialCounter(String name,
{int defaultValue = 3}) {
_counterValues[name] = _counterValues[name] ?? 0;
if (++_counterValues[name] % (app[name] ?? defaultValue) == 0) {
AdmobHelper.showInterstitial();
}
}