pausePlayback method

Future<void> pausePlayback()

Implementation

Future<void> pausePlayback() async {
  if (player.isPlaying) {
    await player.pausePlayer();
  }
}