downloadAndCacheVideo static method

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

Video-only convenience wrapper.

Implementation

static Future<String?> downloadAndCacheVideo(
  String videoUrl, {
  String? cacheSubdirectory,
  String? fileNamePrefix,
}) {
  return downloadAndCacheMedia(
    videoUrl,
    cacheSubdirectory: cacheSubdirectory ?? 'video_cache',
    fileNamePrefix: fileNamePrefix ?? 'video',
  );
}