FileSystemWritableFileStream class
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- locked → bool
-
Available on WritableStream, provided by the JSWritableStream extension
Indicates whether or not the writable stream is locked.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
abort(
[String? reason]) → Future< void> -
Available on WritableStream, provided by the JSWritableStream extension
Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded. -
close(
) → Future< void> -
Available on WritableStream, provided by the JSWritableStream extension
Closes the stream. -
getWriter(
) → WritableStreamDefaultWriter -
Available on WritableStream, provided by the JSWritableStream extension
Returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seek(
int position) → Future< void> -
Available on FileSystemWritableFileStream, provided by the JSFileSystemWritableFileStream extension
Updates the file cursor offset to theposition
(in bytes) specified. The byte position starts from the top (beginning) of the file and must be positive. -
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
int size) → Future< void> -
Available on FileSystemWritableFileStream, provided by the JSFileSystemWritableFileStream extension
Resizes the file associated with the stream to be the specifiedsize
in bytes. -
writeAsArrayBuffer(
Uint8List data) → Future< void> -
Available on FileSystemWritableFileStream, provided by the JSFileSystemWritableFileStream extension
Writes content into the file, at the current file cursor offset. -
writeAsBlob(
Blob data) → Future< void> -
Available on FileSystemWritableFileStream, provided by the JSFileSystemWritableFileStream extension
Writes content into the file, at the current file cursor offset. -
writeAsText(
String data) → Future< void> -
Available on FileSystemWritableFileStream, provided by the JSFileSystemWritableFileStream extension
Writes content into the file, at the current file cursor offset.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited