Метод createFile
Future<Entry> createFile(Создать новый файл с указанным path. Если exclusive равно true, возвращаемое Future завершится ошибкой, если файл уже существует по указанному path.
Исходный код
Future<Entry> createFile(String path, {bool exclusive: false}) {
return _getFile(path, options: {'create': true, 'exclusive': exclusive});
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/DirectoryEntry/createFile.html