nativeInstance property
Ads
get
nativeInstance
Implementation
Ads get nativeInstance {
NetworkIndex().incrementNativeIndex(adsData.settings.natives.length);
if (adsData.settings.natives.isEmpty) {
return NoAds();
}
if (adsData.settings.natives[NetworkIndex().nativeIndex] ==
Networks.admob) {
return admobAD;
}
if (adsData.settings.natives[NetworkIndex().nativeIndex] ==
Networks.ironsource) {
return ironSourceAD;
}
if (adsData.settings.natives[NetworkIndex().nativeIndex] ==
Networks.applovin) {
return applovinAD;
}
// if (adsData.settings.natives[NetworkIndex().nativeIndex] ==
// Networks.unity) {
// return unityAD;
// }
if (adsData.settings.natives[NetworkIndex().nativeIndex] ==
Networks.fan) {
return fanAD;
}
return NoAds();
}