createSync method Null safety

  1. @override
void createSync(
  1. {bool recursive = false}
)
override

Synchronously creates the file.

Existing files are left untouched by createSync. Calling createSync on an existing file might fail if there are restrictive permissions on the file.

If recursive is false, the default, the file is created only if all directories in its path already exist. If recursive is true, all non-existing parent paths are created first.

Throws a FileSystemException if the operation fails.

Implementation

@override
void createSync({bool recursive = false}) =>
    delegate.createSync(recursive: recursive);