WriteFileOptions class
Options for writing to a file.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- WriteFileOptions({bool? append, bool? create, bool? createNew, num? mode, AbortSignal? signal})
-
factory
Properties
- append ↔ bool?
-
Available on WriteFileOptions, provided by the WriteFileOptions$Typings extension
If set totrue
, will append to a file instead of overwriting previous contents.getter/setter pair - create ↔ bool?
-
Available on WriteFileOptions, provided by the WriteFileOptions$Typings extension
Sets the option to allow creating a new file, if one doesn't already exist at the specified path.getter/setter pair - createNew ↔ bool?
-
Available on WriteFileOptions, provided by the WriteFileOptions$Typings extension
If set totrue
, no file, directory, or symlink is allowed to exist at the target location. When createNew is set totrue
,create
is ignored.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- mode ↔ num?
-
Available on WriteFileOptions, provided by the WriteFileOptions$Typings extension
Permissions always applied to file.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signal ↔ AbortSignal?
-
Available on WriteFileOptions, provided by the WriteFileOptions$Typings extension
An abort signal to allow cancellation of the file write operation.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited