getTotalCache static method

Future<String> getTotalCache()

Implementation

static Future<String> getTotalCache() async {
  try {
    Directory tempDir = await getTemporaryDirectory();
    double value = await _getTotalSizeOfFilesInDir(tempDir);
    print(value);

    return _renderSize(value);
  } catch (error) {
    return '0.0';
  }
}