pausePlayer method

Future<void> pausePlayer ()

Pause current play audio

Implementation

Future<void> pausePlayer() async {
  if (isPlaying) {
    try {
      _playComplete();

      await _channel.invokeMethod('pausePlayer');
    } catch (e) {
      print(e);
    }
  }
}