loadCache static method
Implementation
static Future<double> loadCache() async {
//获取文件夹
Directory tempDirectory = await getTemporaryDirectory();
double size = 0;
if (tempDirectory.existsSync()) {
size += await getTotalSizeOfFilesInDir(tempDirectory);
}
return size;
}