TestStepRuntime class final

Owns Flutter frame delivery and bounded post-action settling.

Keeping this boundary separate from operation dispatch makes the timing policy explicit. Callers decide what needs to happen; this class decides how the Flutter tree and live application work are allowed to progress.

Constructors

TestStepRuntime({required WidgetTester tester, required EnsembleTestContext context, required TestExecutionConfig config})

Properties

config → TestExecutionConfig
final
context → EnsembleTestContext
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tester → WidgetTester
final

Methods

drainTransientFlutterDiagnostics() → void
liveDelay(Duration duration) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pump({Duration? duration, EnginePhase phase = EnginePhase.sendSemanticsUpdate, required String label}) → Future<void>
Advances a frame after yielding live work, preserving the guarded frame boundary required by route transitions and overlay updates.
pumpWhileWaiting(Duration duration) → Future<void>
Keeps the app's frame scheduler moving while a duration-based wait is active. A single live delay followed by a pump freezes frame callbacks, animations, and UI work for the entire interval in test bindings, unlike a foreground Flutter application that continues rendering.
settle({Duration? timeout}) → Future<void>
settleAfterAction() → Future<void>
toString() → String
A string representation of this object.
inherited
waitForCondition({required bool condition(), required Duration timeout}) → Future<void>
yieldToLiveApiWork() → Future<void>

Operators

operator ==(Object other) → bool
The equality operator.
inherited