playSong method

void playSong()

Implementation

void playSong() async {
  audioPlayer ??= AudioPlayer();
  _decideSource();
  listenOnDurationChanged();
  if (audioPlayer?.state == PlayerState.playing) {
    await audioPlayer?.stop();
  }
  currentAlbumCover = await extractAlbumCover(audioTrack);
  await audioPlayer?.play(source!);
  extractDominantColor();
  togglePlay();
  notifyListeners();
}