FakeConsumer class final

A StreamConsumer, that listents to the events of a Stream and throws them away.

A FakeConsumer does register listeners for a Stream, but all events will be thrown away.

Implemented types

Constructors

FakeConsumer.new()

Properties

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

Methods

addStream(Stream<List<int>> stream) Future<void>
Consumes the elements of stream.
override
close() Future<void>
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