OpenOptions class

Options and flags which can be used to configure how a file is opened. See OpenOptions.open.

Constructors

OpenOptions.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

append(bool append) → void
The option for the append mode. If true write access does not need to be set.
create(bool create) → void
The option to create a new file, or open it if it already exists.
createNew(bool createNew) → void
The option to create a new file, failing if it already exists - No file is allowed to exist at the target location. If set, .create() and .truncate() are ignored.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(Path path) → FutureResult<RandomAccessFile, IoError>
openSync(Path path) → Result<RandomAccessFile, IoError>
read(bool read) → void
The option for read access
toString() String
A string representation of this object.
inherited
truncate(bool truncate) → void
The option for truncating a previous file. Needs write access to work
write(bool write) → void
The option for write access.

Operators

operator ==(Object other) bool
The equality operator.
inherited