cacheSize static method

Future<int> cacheSize()

Returns total cache size in bytes.

final bytes = await CloudMedia.cacheSize();
final mb = (bytes / 1024 / 1024).toStringAsFixed(1);
print('Cache: ${mb}MB');

Implementation

static Future<int> cacheSize() async {
  _ensure();
  return _provider!.getCacheSize();
}