destroyInterstitialAd static method

Future<bool?> destroyInterstitialAd(
  1. int id
)

Removes the Ad.

Implementation

static Future<bool?> destroyInterstitialAd(int id) async {
  try {
    final args = <String, dynamic>{
      "id": id,
    };

    final result = await _channel.invokeMethod(
      DESTROY_INTERSTITIAL_METHOD,
      args,
    );
    _listeners.remove(id);
    return result;
  } on PlatformException {
    return false;
  }
}