createStorageDir static method

Future<Directory?> createStorageDir({
  1. String? category,
})

Implementation

static Future<Directory?> createStorageDir({String? category}) async {
  await initStorageDir();
  String? path = getStoragePath(category: category);
  return createDir(path);
}