total static method

Future<int> total()

获取缓存大小

Implementation

static Future<int> total() async {
  try {
    Directory tempDir = await getTemporaryDirectory();
    int total = await _reduce(tempDir);
    return total;
  } catch (_) {
    return 0;
  }
}