DwStreamRecording<T> class
final
Records what a stream emits, for assertions over a sequence of states.
final states = DwStreamRecording(watch.states);
await pumpEventQueue();
expect(states.last, isA<DwRequestData<List<RoomView>>>());
Constructors
-
DwStreamRecording(Stream<
T> stream)
Properties
-
errors
→ List<
Object> -
Errors the stream emitted.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDone → bool
-
Whether the stream is done.
no setter
- last → T
-
The latest value. Throws when nothing was recorded.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ List<
T> -
Every value so far, in order.
no setter
Methods
-
cancel(
) → Future< void> -
clear(
) → void - Forgets what was recorded so far; recording continues.
-
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