TransformStreamDefaultController extension type
The TransformStreamDefaultController
interface of the
Streams API
provides methods to manipulate the associated ReadableStream and
WritableStream.
When constructing a TransformStream, the
TransformStreamDefaultController
is created. It therefore has no
constructor. The way to get an instance of
TransformStreamDefaultController
is via the callback methods of
TransformStream.TransformStream
.
Properties
- desiredSize → num?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
enqueue(
[JSAny? chunk]) → void -
The
enqueue()
method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream. -
error(
[JSAny? reason]) → void -
The
error()
method of the TransformStreamDefaultController interface errors both sides of the stream. Any further interactions with it will fail with the given error message, and any chunks in the queue will be discarded. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
terminate(
) → void -
The
terminate()
method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited