Abstract interface for a "sink" accepting multiple entire streams.
A consumer can accept a number of consecutive streams usingaddStream,and when no further data need to be added, theclose method tells theconsumer to complete its work and shut down.
TheStream.pipe accepts aStreamConsumer and will pass the streamto the consumer'saddStream method. When that completes, it willcallclose and then complete its own returned future.
- Implementers
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< S> stream)→Future - Consumes the elements of
stream. - close(
)→Future - Tells the consumer that no further streams will be added.
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited