loadCache static method

Future<Null> loadCache()

加载缓存

Implementation

static Future<Null> loadCache() async {
  try {
    // Directory tempDir = await getTemporaryDirectory();
    // double value = await _getTotalSizeOfFilesInDir(tempDir);
    /*tempDir.list(followLinks: false,recursive: true).listen((file){
        //打印每个缓存文件的路径
      print(file.path);
    });*/
    // print('临时目录大小: ' + value.toString());
    // setState(() {
    //   _cacheSizeStr = _renderSize(value);
    // });
  } catch (err) {
    print(err);
  }
}