NavigationFlowRecorder class
Records screen visits for declarative tests (including back-navigation revisits).
Constructors
Properties
-
flow
→ List<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isListening → bool
-
Whether this recorder currently owns a screen-change subscription.
no setter
-
onScreenAdded
↔ FutureOr<
void> Function(String screenName)? -
Invoked when a screen name is appended to flow (after de-dupe).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beginTest(
String? currentScreen) → void -
beginTestAfterPending(
String? currentScreen()) → Future< void> - Ends app-launch navigation and starts the authored test journey.
-
clear(
) → void -
dispose(
) → Future< void> -
flushPending(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordScreenChange(
VisibleScreen? screen) → void - Visible for unit tests; production receives changes from the subscription.
-
seed(
Iterable< String> names) → void - For unit tests only.
-
startListeningWhenReady(
) → Future< void> - Starts listening after a previous subscription has finished cancelling.
-
stopListening(
{bool clearHistory = false, bool awaitCancellation = false}) → Future< void> - Stops collecting screens while keeping attempt history available for result projection after cleanup.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited