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 extension

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

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

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

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

no setter
pipeThrough ReadableStream<T> Function<T>(dynamic, [PipeOptions?])

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

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

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
values AsyncIterableIterator<R> Function([dynamic])

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

Static Properties

from ReadableStream<R> Function<R>(UnionCommon12)
no getter