createTempDir static method

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

Implementation

static Future<Directory?> createTempDir({String? category}) async {
  await initTempDir();
  String? path = getTempPath(category: category);
  return createDir(path);
}