EffectCommandProbe<A extends Object, E extends Object> class
final
Records visible EffectCommandState revisions without owning the Command.
Dispose the probe before disposing the observed Command, or use a test teardown that disposes both.
Constructors
-
EffectCommandProbe(ValueListenable<
EffectCommandState< command, {bool includeInitial = true})A, E> >
Properties
-
command
→ ValueListenable<
EffectCommandState< A, E> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setter
-
lastState
→ EffectCommandState<
A, E> ? -
Latest recorded state, or null when initial recording was disabled and no
transition has happened yet.
no setter
- pendingWaiterCount → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ List<
EffectCommandState< A, E> > -
Immutable snapshot of recorded visible states.
no setter
Methods
-
clear(
) → void - Remove recorded history without changing active waiters.
-
dispose(
) → void - Detach from the Command and fail pending state waiters.
-
expectStateTypes(
Iterable< Type> expected) → void - Verify the exact sequence of recorded runtime types.
-
nextWhere(
bool where(EffectCommandState< A, E> state), {Duration timeout = const Duration(seconds: 5)}) → Future<EffectCommandState< A, E> > -
Wait for a future state satisfying
where. Previously recorded states are ignored. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
statesOf<
S extends EffectCommandState< (A, E> >) → Iterable< S> -
Recorded states assignable to
S. -
toString(
) → String -
A string representation of this object.
inherited
-
waitFor<
S extends EffectCommandState< (A, E> >{bool where(S state)?, Duration timeout = const Duration(seconds: 5)}) → Future< S> -
Wait for the current or next state assignable to
S. -
waitUntil(
bool where(EffectCommandState< A, E> state), {Duration timeout = const Duration(seconds: 5)}) → Future<EffectCommandState< A, E> > -
Wait until the current or a future state satisfies
where.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited