operateDeleteMusic method

void operateDeleteMusic(
  1. MusicInfo musicInfo
)

Implementation

void operateDeleteMusic(MusicInfo musicInfo) {
  if (musicState.currentMusicInfo.value == musicInfo) {
    musicState.currentMusicInfo.value = null;
  }
  if (musicInfo.isPlaying.value) {
    _stopMusic(musicInfo);
  }
  _deleteMusic(musicInfo);
}