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.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

ReadableStream.$1()
factory
ReadableStream.$2(UnderlyingByteSource underlyingSource, [IInline438? strategy])
factory
ReadableStream.$3(UnderlyingDefaultSource<R> underlyingSource, [QueuingStrategy<R>? strategy])
factory
ReadableStream.$4([UnderlyingSource<R>? underlyingSource, QueuingStrategy<R>? strategy])
factory

Properties

cancel Future<void> Function([dynamic])

Available on ReadableStream<R>, provided by the ReadableStream$Typings extension

getter/setter pair
getReader → ({ReadableStreamDefaultReader<R> Function() $1, ReadableStreamBYOBReader Function(IInline436 options) $2, ReadableStreamReader<R> Function([ReadableStreamGetReaderOptions? options]) $3})

Available on ReadableStream<R>, provided by the ReadableStream$Typings extension

Overload accessor: $1, $2, $3
no setter
hashCode int
The hash code for this object.
no setterinherited
locked bool

Available on ReadableStream<R>, provided by the ReadableStream$Typings extension

MDN Reference
no setter
pipeThrough ReadableStream<T> Function<T>(ReadableWritablePair<T, R>, [StreamPipeOptions?])

Available on ReadableStream<R>, provided by the ReadableStream$Typings extension

getter/setter pair
pipeTo Future<void> Function(WritableStream<R>, [StreamPipeOptions?])

Available on ReadableStream<R>, provided by the ReadableStream$Typings extension

getter/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 extension

getter/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