destroy method

Future<bool?> destroy()

Implementation

Future<bool?> destroy() async {
  bannerAds[id] = null;
  _listenerSub?.cancel();
  bool? result = await Ads.instance.channelBanner
      .invokeMethod("destroyAd", <String, dynamic>{'id': id, "adType": _adType});
  return result;
}