show method

Future<bool> show()
override

Show the interstitial ad. This returns a Future that will complete when the ad gets closed

The ad must be loaded. To check if the ad is loaded, call interstitialAd.isLoaded. If it's not loaded, throws an AssertionError

For more info, read the documentation

Implementation

Future<bool> show() async {
  ensureAdNotDisposed();
  assertMobileAdsIsInitialized();
  ensureAdAvailable();
  return (await channel.invokeMethod<bool>('show'))!;
}