getFilePath static method

Future<String> getFilePath(
  1. String url
)

Get file path for a URL. Does not create the file.

Implementation

static Future<String> getFilePath(String url) async {
  final dir = await getCacheDir();
  final hash = _urlToHash(url);
  return '$dir/$hash.mp4';
}