downloadAndCacheImage static method
Image-only convenience wrapper.
Implementation
static Future<String?> downloadAndCacheImage(
String imageUrl, {
String? cacheSubdirectory,
String? fileNamePrefix,
}) {
return downloadAndCacheMedia(
imageUrl,
cacheSubdirectory: cacheSubdirectory ?? 'image_cache',
fileNamePrefix: fileNamePrefix ?? 'image',
);
}