StreamConsumerBase<T> class abstract

A helper class that can be used to read data from a data stream on demand.

Implementers

Constructors

StreamConsumerBase.new(Stream<T> stream)
Creates a new StreamConsumer that reads from stream.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() Future<void>
Dispose the consumer and cancel the underlying stream.
getLength(T chunk) int
Returns the length of type T.
getSublistView(T chunk, int start, int end) → T
Returns a sublist view of type T from start to end.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int size) Future<T?>
Reads up to size bytes from the stream.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited