formatDirSize static method

Future<String> formatDirSize({
  1. String path = '',
  2. bool lowerCase = false,
  3. int fixed = 1,
})

Implementation

static Future<String> formatDirSize({
  String path = '',
  bool lowerCase = false,
  int fixed = 1,
}) async {
  final result = await getDirSize(path);
  return formatSize(result, lowerCase: lowerCase, fixed: fixed);
}