flutter_cache_manager
flutter_cache_manager copied to clipboard
Is there a method to check whether a file exists in the cache using its url?
💬 Questions and Help
Hi,
I've looked through the documentation, the issues on GitHub and source code. I'd like to know, using its URL, if a file exists in the cache.
I've only found a private method in the cache manager's CacheStore: _fileExists().
But since it's private, I cannot use it.
Any other suggestions?
You can use cacheKey then get file info from cache by key: final fileInfo = await DefaultCacheManager().getFileFromCache(cacheKey);