create method

Future<File> create(
  1. String path, {
  2. bool createFoldersInPath = true,
})

Creates a file at the specified path (The file's name is the last is that path).

Implementation

Future<File> create(String path, {bool createFoldersInPath = true}) async =>
    await createFile(path.replaceSeparator(),
        createFoldersInPath: createFoldersInPath);