WritableStream class

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

WritableStream.new()

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
toString() String
A string representation of this object.
inherited

Operators

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