createFile abstract method

void createFile(
  1. String path, {
  2. bool errorIfNotExists = false,
  3. bool errorIfAlreadyExists = false,
})

Creates an empty file at path.

If errorIfAlreadyExists is set to true, and a file already exists at path, a FileSystemException is thrown.

Implementation

void createFile(
  String path, {
  bool errorIfNotExists = false,
  bool errorIfAlreadyExists = false,
});