isAdPlaying method
Implementation
@override
Future<bool?> isAdPlaying(String playerReference) async {
try {
return await methodChannel.invokeMethod<bool>('isAdPlaying', {'playerReference': playerReference});
} on PlatformException catch (e) {
debugPrint('Failed to check if ad is playing: ${e.message}');
rethrow;
}
}