EventDrivenSettler class final

Settles Flutter work from observable event signals instead of scanning a fixed frame cadence. The boundary is shared by execution, observation, and fixture setup so each path has the same bounded idle semantics.

Constructors

EventDrivenSettler({required WidgetTester tester, bool hasExternalWork() = _noExternalWork, Future<void> waitForExternalWork() = _waitForNoExternalWork, Duration externalWorkPollTimeout = const Duration(milliseconds: 100), Duration activeFrameDuration = const Duration(milliseconds: 100), Duration graceFrameDuration = const Duration(milliseconds: 16), FutureOr<void> onPump()?})

Properties

activeFrameDuration → Duration
final
externalWorkPollTimeout → Duration
final
graceFrameDuration → Duration
final
hasExternalWork → bool Function()
final
hashCode → int
The hash code for this object.
no setterinherited
onPump → FutureOr<void> Function()?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tester → WidgetTester
final
waitForExternalWork → Future<void> Function()
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
settle({required Duration timeout}) → Future<void>
toString() → String
A string representation of this object.
inherited
waitFor({required bool condition(), required Duration timeout}) → Future<void>
Waits for an externally observable condition while advancing only bounded event-driven frames. This is used for startup targets whose availability is the synchronization contract, rather than waiting for an arbitrary number of fixed-duration pumps.

Operators

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