createAppDocDir static method

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

Implementation

static Future<Directory?> createAppDocDir({String? category}) async {
  await initAppDocDir();
  String? path = getAppDocPath(category: category);
  return createDir(path);
}