How to get application cache size in Flutter?

Viewed 800

My application is image-based and I'm using CachedNetworkImage to handle images from network. I'd like to show users cached images size on the device and an option to clean within the app. I am able to clean the app's cache using flutter_cache_manager.

To clean app cache:

await DefaultCacheManager().emptyCache();

There is no such function to get the app's cache size. How do I do get it?

0 Answers
Related