sizeInBytes property
int
get
sizeInBytes
The cache's size on disk, in bytes.
Implementation
int get sizeInBytes {
final root = Directory(dir);
if (!root.existsSync()) return 0;
var total = 0;
for (final f in root.listSync(recursive: true)) {
if (f is File) total += f.lengthSync();
}
return total;
}