playmusic method
dynamic
playmusic()
Implementation
playmusic() async {
if (playingmusic.value || musicIndex.value == null) {
return;
}
playingmusic.value = true;
musicController.forward();
showmusicInfo();
await player.value.play(
filteredmusicList.value![musicIndex.value!].path != null
? AssetSource(filteredmusicList.value![musicIndex.value!].path!)
: UrlSource(filteredmusicList.value![musicIndex.value!].pathURL!),
volume: 0.3,
);
}