loadInterstitialAd method

Future<void> loadInterstitialAd(
  1. PAGInterstitialAd ad
)

Implementation

Future<void> loadInterstitialAd(PAGInterstitialAd ad) {
  if (adIdFor(ad) != null) {
    return Future<void>.value();
  }

  final int adId = _nextAdId++;
  _loadedAds[adId] = ad;
  return channel.invokeMethod<void>(
    'loadInterstitialAd',
    <dynamic, dynamic>{
      'adId': adId,
      'adUnitId': ad.adUnitId,
    },
  );
}