DelegatingStreamConsumer<T> class

Simple delegating wrapper around a StreamConsumer.

Subclasses can override individual methods, or use this to expose only the StreamConsumer methods of a subclass.

Implemented types

Constructors

DelegatingStreamConsumer(StreamConsumer<T> consumer)
Create a delegating consumer forwarding calls to consumer.

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

addStream(Stream<T> stream) Future
Consumes the elements of stream.
override
close() Future
Tells the consumer that no further streams will be added.
override
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 Methods

typed<T>(StreamConsumer consumer) StreamConsumer<T>
Creates a wrapper that coerces the type of consumer.