resume method

Future<void> resume()

Resumes the currently played (but resumed) background music.

Implementation

Future<void> resume() async {
  isPlaying = true;
  await audioPlayer.resume();
}