dispose method

Future<void> dispose()
inherited

Disposes the Adrop ad to free resources.

This detaches the event handler, so the ad stops delivering listener callbacks and should not be reused afterwards — create a new instance to request another ad.

Implementation

Future<void> dispose() async {
  _adropEventObserverChannel?.setMethodCallHandler(null);
  return await _invokeChannel.invokeMethod(AdropMethod.disposeAd,
      {"adType": _adType.index, "requestId": _requestId});
}