createDir static method
Creates a directory at the given path if it doesn't exist.
Implementation
static void createDir(String path) {
final dir = Directory(path);
if (!dir.existsSync()) {
dir.createSync(recursive: true);
}
}
Creates a directory at the given path if it doesn't exist.
static void createDir(String path) {
final dir = Directory(path);
if (!dir.existsSync()) {
dir.createSync(recursive: true);
}
}