@@ -215,7 +215,7 @@ List _deduplicateAndShuffle(List playlistSongs) {
215215 return uniqueSongs;
216216}
217217
218- Future <void > updateSongLikeStatus (dynamic songId, bool add) async {
218+ Future <void > updateSongLikeStatus (String songId, bool add) async {
219219 try {
220220 if (add) {
221221 if (! userLikedSongsList.any ((song) => song['ytid' ] == songId)) {
@@ -250,7 +250,7 @@ void moveLikedSong(int oldIndex, int newIndex) {
250250}
251251
252252Future <void > renameSongInLikedSongs (
253- dynamic songId,
253+ String songId,
254254 String newTitle,
255255 String newArtist,
256256) async {
@@ -276,13 +276,13 @@ Future<void> renameSongInLikedSongs(
276276 }
277277}
278278
279- bool isSongAlreadyLiked (songIdToCheck) =>
279+ bool isSongAlreadyLiked (String songIdToCheck) =>
280280 userLikedSongsList.any ((song) => song['ytid' ] == songIdToCheck);
281281
282- bool isPlaylistAlreadyLiked (playlistIdToCheck) =>
282+ bool isPlaylistAlreadyLiked (String playlistIdToCheck) =>
283283 userLikedPlaylists.any ((playlist) => playlist['ytid' ] == playlistIdToCheck);
284284
285- bool isSongAlreadyOffline (songIdToCheck) =>
285+ bool isSongAlreadyOffline (String songIdToCheck) =>
286286 userOfflineSongs.any ((song) => song['ytid' ] == songIdToCheck);
287287
288288Map <String , dynamic > getOfflineSongByYtid (String ytid) {
@@ -618,7 +618,7 @@ Future<bool> makeSongOffline(dynamic song) async {
618618 }
619619}
620620
621- Future <bool > removeSongFromOffline (dynamic songId) async {
621+ Future <bool > removeSongFromOffline (String songId) async {
622622 try {
623623 final audioPath = FilePaths .getAudioPath (songId);
624624 final audioFile = File (audioPath);
@@ -700,7 +700,7 @@ Future<File?> _downloadAndSaveArtworkFile(String url, String filePath) async {
700700
701701const recentlyPlayedSongsLimit = 250 ;
702702
703- Future <void > updateRecentlyPlayed (dynamic songId) async {
703+ Future <void > updateRecentlyPlayed (String songId) async {
704704 try {
705705 if (userRecentlyPlayed.isNotEmpty &&
706706 userRecentlyPlayed.length == 1 &&
@@ -750,7 +750,7 @@ Future<void> updateRecentlyPlayed(dynamic songId) async {
750750 }
751751}
752752
753- Future <void > removeFromRecentlyPlayed (dynamic songId) async {
753+ Future <void > removeFromRecentlyPlayed (String songId) async {
754754 if (userRecentlyPlayed.any ((song) => song['ytid' ] == songId)) {
755755 userRecentlyPlayed.removeWhere ((song) => song['ytid' ] == songId);
756756 currentRecentlyPlayedLength.value = userRecentlyPlayed.length;
0 commit comments