isPlaying property
Checks whether audio is currently playing.
This method sends a request to the platform to determine whether audio is currently being played.
Implementation
@override
Future<bool?> get isPlaying async {
try {
return await methodChannel.invokeMethod<bool>('isPlaying') ?? false;
} on PlatformException catch (e) {
log("Failed to seekTo: '${e.message}'.");
return null;
}
}