showInterstitialAd static method

Future<bool?> showInterstitialAd({
  1. int? delay,
})

Shows an Interstitial Ad after it has been loaded. (This needs to be called only after calling loadInterstitialAd function). delay is in milliseconds.

Example:

FacebookAudienceNetwork.loadInterstitialAd(
  listener: (result, value) {
    if (result == InterstitialAdResult.LOADED)
      FacebookAudienceNetwork.showInterstitialAd(delay: 5000);
  },
);

Implementation

static Future<bool?> showInterstitialAd({int? delay}) async {
  return await FacebookInterstitialAd.showInterstitialAd(delay: delay);
}