createIfMissingSync method

void createIfMissingSync({
  1. bool recursive = false,
  2. bool exclusive = false,
})

Synchronously creates the file if it does not exist.

Implementation

void createIfMissingSync({bool recursive = false, bool exclusive = false}) {
  if (!existsSync()) createSync(recursive: recursive, exclusive: exclusive);
}