disposeAd method

Future<void> disposeAd(
  1. Ad ad
)

Implementation

Future<void> disposeAd(Ad ad) {
  final int? adId = adIdFor(ad);
  final Ad? disposedAd = _loadedAds.remove(adId);
  if (disposedAd == null) {
    return Future<void>.value();
  }
  return channel.invokeMethod<void>(
    'disposeAd',
    <dynamic, dynamic>{
      'adId': adId,
    },
  );
}