getThumbnailUri method
Given a MediaItem, return its thumbnail. Some media items may allow overriding of values for display purposes.
Implementation
String getThumbnailUri({
required AppModel appModel,
required MediaItem item,
bool noOverride = false,
}) {
ImageProvider<Object>? overrideThumbnail =
getOverrideThumbnailFromMediaItem(
appModel: appModel,
item: item,
);
if (!noOverride && overrideThumbnail != null) {
return getOverrideThumbnailFilename(appModel: appModel, item: item);
}
if (item.imageUrl != null) {
return item.imageUrl!;
}
if (item.base64Image == null) {
return '';
}
return '';
}