getCallInterstitialAds method

Future getCallInterstitialAds(
  1. dynamic i
)

Implementation

Future getCallInterstitialAds(i) async {
  if (admodel?.isinterstitialenable ?? false) {
    if (admodel?.issdkads ?? false) {
      if (admodel?.iseveryads ?? false) {
        if (admodel?.isfacebook ?? false) {
          return await loadFBInterstitial();
        } else {
          return loadGoogleInterstitial();
        }
      } else if (i == (admodel?.adTime ?? 2)) {
        if (admodel?.isfacebook ?? false) {
          return await loadFBInterstitial();
        } else {
          return loadGoogleInterstitial();
        }
      }
    } else {
      return await PluginCodelabPlatform.instance.getCallInterstitialAds();
    }
  }
}