StreamChannelMixin<T> class

A mixin that implements the instance methods of StreamChannel in terms of stream and sink.

Implemented types
Implementers

Constructors

StreamChannelMixin()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sink StreamSink<T>
The sink for sending values to the other endpoint.
read-only, inherited
stream Stream<T>
The single-subscription stream that emits values from the other endpoint.
read-only, inherited

Methods

cast<S>() StreamChannel<S>
Returns a copy of this with the generic type coerced to S. [...]
override
changeSink(StreamSink<T> change(StreamSink<T> sink)) StreamChannel<T>
Returns a copy of this with sink replaced by change's return value.
override
changeStream(Stream<T> change(Stream<T> stream)) StreamChannel<T>
Returns a copy of this with stream replaced by change's return value.
override
pipe(StreamChannel<T> other) → void
Connects this to other, so that any values emitted by either are sent directly to the other.
override
transform<S>(StreamChannelTransformer<S, T> transformer) StreamChannel<S>
Transforms this using transformer. [...]
override
transformSink(StreamSinkTransformer<T, T> transformer) StreamChannel<T>
Transforms only the sink component of this using transformer.
override
transformStream(StreamTransformer<T, T> transformer) StreamChannel<T>
Transforms only the stream component of this using transformer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited