isPlaying method

Future<bool?> isPlaying()

Gets the state of the player. Returns true if the player is playing or false if is stopped or paused.

Implementation

Future<bool?> isPlaying() async {
  final result = await _channel.invokeMethod("player#isPlaying");
  return result['isPlaying'];
}