disposeNativeAd method
Disposes a native ad and releases its resources.
nativeAdId - The unique ID of the native ad to dispose.
Returns true if the native ad is disposed successfully, false otherwise.
Implementation
Future<bool> disposeNativeAd(String nativeAdId) async {
try {
final result = await _channel.invokeMethod<bool>(
'disposeNativeAd',
{'nativeAdId': nativeAdId},
);
return result ?? false;
} catch (e) {
debugPrint('Error disposing native ad: $e');
return false;
}
}