isPlaying method

Future<bool> isPlaying()

Check if there is a song currently playing.

Implementation

Future<bool> isPlaying() async {
  final isPlaying = await playerChannel.invokeMethod('isPlaying') ?? false;
  return isPlaying;
}