fix(flutter): null-coalesce PlaylistTrack.streamUrl to TrackRef.streamUrl
PlaylistTrack.streamUrl is String? (nullable when track is unavailable post-delete); TrackRef.streamUrl is required String. flutter analyze caught the mismatch. Coalesce to empty string for unavailable rows — they're already filtered out by the trackId != null check earlier in the loop, so this branch is effectively unreachable but keeps the type-checker happy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -116,7 +116,7 @@ class PlaylistCard extends ConsumerWidget {
|
|||||||
artistId: t.artistId ?? '',
|
artistId: t.artistId ?? '',
|
||||||
artistName: t.artistName,
|
artistName: t.artistName,
|
||||||
durationSec: t.durationSec,
|
durationSec: t.durationSec,
|
||||||
streamUrl: t.streamUrl,
|
streamUrl: t.streamUrl ?? '',
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if (refs.isEmpty) return;
|
if (refs.isEmpty) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user