getCacheSize method
Implementation
Future<int> getCacheSize() async {
int total = 0;
for (final key in _box.keys) {
final raw = _box.get(key);
if (raw != null) {
total += CacheEntry.fromJson(Map<String, dynamic>.from(raw)).size;
}
}
return total;
}