DelegatingStreamConsumer<T> class
Null safety
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.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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
.Deprecated('Use StreamController<T>(sync: true)..stream.cast<S>().pipe(sink)')">@Deprecated('Use StreamController<T>(sync: true)..stream.cast<S>().pipe(sink)')