cacheDirSize static method

Future<int> cacheDirSize()

Implementation

static Future<int> cacheDirSize() async {
  String dir = (await getTemporaryDirectory()).path;
  String docDir = (await getApplicationDocumentsDirectory()).path;
  return dirSize(dir) + dirSize(docDir);
}