management_cache_io library
Functions
-
calculateCacheSize(
List< CachedMediaInfo> allCachedMediaInfo) → double -
clearCacheOnInit(
GetStorage getStorage) → Future< void> -
deleteMediaInCache(
String filePath) → Future< void> -
doesFileExist(
String? filePath) → Future< bool> -
downloadAndSetInCache(
String mediaUrl, {required GetStorage getStorage}) → Future< void> -
downloadMediaToCache(
String mediaUrl) → Future< String?> -
downloadMediaToLocalCache(
String mediaUrl, String mediaName) → Future< String?> -
Download locally the file and return the file path if succes, or
null
if error. -
getTemporaryDirectoryIoWeb(
) → Future< Directory?> -
reduceCacheSize(
GetStorage getStorage, List< CachedMediaInfo> allCachedMediaInfo) → Future<void>