ReadableStream<R> class
This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- ReadableStream.$1()
-
factory
- ReadableStream.$2(UnderlyingByteSource underlyingSource, [IInline47? strategy])
-
factory
-
ReadableStream.$3([UnderlyingSource<
R> ? underlyingSource, QueuingStrategy<R> ? strategy]) -
factory
Properties
-
cancel
↔ Future<
void> Function([dynamic]) -
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensiongetter/setter pair -
getReader
→ ({ReadableStreamBYOBReader Function(IInline41 options) $1, ReadableStreamDefaultReader<
R> Function([IInline42? options]) $2}) -
Available on ReadableStream<
Overload accessor: $1, $2R> , provided by the ReadableStream$Typings extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- locked → bool
-
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensionno setter -
pipeThrough
↔ ReadableStream<
T> Function<T>(dynamic, [PipeOptions?]) -
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensiongetter/setter pair -
pipeTo
↔ Future<
void> Function(WritableStream<R> , [PipeOptions?]) -
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensiongetter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tee
↔ (ReadableStream<
R> , ReadableStream<R> ) Function() -
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensiongetter/setter pair -
values
↔ AsyncIterableIterator<
R> Function([dynamic]) -
Available on ReadableStream<
R> , provided by the ReadableStream$Typings extensiongetter/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
Static Properties
-
from
← ReadableStream<
R> Function<R>(UnionCommon12) -
no getter