isInterstitialReady method
Returns whether an interstitial ad is ready for the given ad unit ID.
Implementation
Future<bool> isInterstitialReady(String adUnitId) async {
try {
final result = await _channel.invokeMethod<bool>(
'isInterstitialReady',
{'adUnitId': adUnitId},
);
return result ?? false;
} catch (e) {
debugPrint('Error checking interstitial readiness: $e');
return false;
}
}