operatePlayMusic method

void operatePlayMusic(
  1. MusicInfo musicInfo
)

Implementation

void operatePlayMusic(MusicInfo musicInfo) {
  final MusicInfo? currentMusicInfo = musicState.currentMusicInfo.value;
  if (currentMusicInfo?.isPlaying.value == true) {
    _stopMusic(currentMusicInfo!);
  }
  _startMusic(musicInfo);
}