loadFBInterstitial method
dynamic
loadFBInterstitial()
Implementation
loadFBInterstitial() async {
if (admodel?.fBinterstitialAd?.isNotEmpty ?? false) {
return await FacebookInterstitialAd.loadInterstitialAd(
placementId: admodel?.fBinterstitialAd ?? '',
listener: (result, value) async {
if (result == InterstitialAdResult.LOADED) {
FacebookInterstitialAd.showInterstitialAd(delay: 1000);
}
if (result == InterstitialAdResult.ERROR) {
await FacebookInterstitialAd.destroyInterstitialAd();
}
});
}
}