loadCache static method
Implementation
static Future<String> loadCache() async {
var value = 0;
Directory tempDir = await getTemporaryDirectory();
if (await tempDir.exists()) {
value = await _getTotalSizeOfFilesInDir(tempDir);
}
var cacheSizeStr = value.byteFormat();
return cacheSizeStr;
}