downloadAndCacheImage static method

Future<String?> downloadAndCacheImage(
  1. String imageUrl, {
  2. String? cacheSubdirectory,
  3. String? fileNamePrefix,
})

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',
  );
}