ReadableStream class
The interface of the Streams API represents a readable stream of
byte data. The Fetch API offers a concrete instance of a through
the body
property of a Response object.
- Inheritance
-
- Object
- JsIterable
- ReadableStream
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- ReadableStream([dynamic underlyingSource, QueuingStrategy? strategy])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- locked → bool
-
Available on ReadableStream, provided by the PropsReadableStream extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
[dynamic reason]) → Future< void> -
Available on ReadableStream, provided by the PropsReadableStream extension
-
getReader(
[ReadableStreamGetReaderOptions? options]) → dynamic -
Available on ReadableStream, provided by the PropsReadableStream extension
-
next(
) → IteratorResult< T> -
Available on JsIterator<
T> , provided by the PropsIterator extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pipeThrough(
ReadableWritablePair transform, [StreamPipeOptions? options]) → ReadableStream -
Available on ReadableStream, provided by the PropsReadableStream extension
-
pipeTo(
WritableStream destination, [StreamPipeOptions? options]) → Future< void> -
Available on ReadableStream, provided by the PropsReadableStream extension
-
tee(
) → Iterable< ReadableStream> -
Available on ReadableStream, provided by the PropsReadableStream extension
-
toIterable(
) → Iterable< T> -
Available on JsIterator<
T> , provided by the PropsIterator extension -
toList(
) → List< E> -
Available on JsIterable<
E> , provided by the PropsIterable extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited