create method
- {bool recursive = false}
Creates the file.
Returns a Future<File>
that completes with the file when it has been created.
If recursive
is false
, the default, the file is created only if all directories in its path alredy exist. If recursive
is true
, any non-existing parent paths are created first.
Existing files are left untouched by create. Calling create on an existing file might fail if there are restrictive permissions on the file.
Completes the future with a FileSystemException if the operation fails.
Implementation
Future<File> create({bool recursive = false});
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/File/create.html