stopPlayback method

Future<void> stopPlayback()

Implementation

Future<void> stopPlayback() async {
  if (player.isPlaying) {
    await player.stopPlayer();
  }
}