destroyAd static method

Future<bool> destroyAd({
  1. required String adId,
})

Destroy an ad instance and free resources

Call this when you're done with an ad to prevent memory leaks.

Implementation

static Future<bool> destroyAd({required String adId}) async {
  _listeners.remove(adId);
  return await _invokeMethod<bool>('destroyAd', {'adId': adId}) ?? false;
}