This commit is contained in:
Riccardo Venturini 2026-06-05 15:53:15 +00:00 committed by GitHub
commit 4f004292bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,8 +33,7 @@ extension SpotubeImageExtensions on List<SpotubeImageObject>? {
int index = 1,
required ImagePlaceholder placeholder,
}) {
final sortedImage =
this?.sorted((a, b) => (a.width ?? 0).compareTo(b.width ?? 0));
final sortedImage = this?.sorted((a, b) => (a.width ?? 0).compareTo(b.width ?? 0));
return sortedImage != null && sortedImage.isNotEmpty
? sortedImage[