bannerInstance property

Ads get bannerInstance

Implementation

Ads get bannerInstance {
  NetworkIndex().incrementBannerIndex(adsData.settings.banners.length);
  if (adsData.settings.banners.isEmpty) {
    return NoAds();
  }
  if (adsData.settings.banners[NetworkIndex().bannerIndex] ==
      Networks.admob) {
    return admobAD;
  }
  if (adsData.settings.banners[NetworkIndex().bannerIndex] ==
      Networks.ironsource) {
    return ironSourceAD;
  }
  if (adsData.settings.banners[NetworkIndex().bannerIndex] ==
      Networks.applovin) {
    return applovinAD;
  }
  // if (adsData.settings.banners[NetworkIndex().bannerIndex] ==
  //     Networks.unity) {
  //   return unityAD;
  // }
  if (adsData.settings.banners[NetworkIndex().bannerIndex] == Networks.fan) {
    return fanAD;
  }
  return NoAds();
}