ReadinessGate class
§7.2 readiness primitive. Polls fresh scenes until glintId both exists in
the tree AND passes a hit test at its centre, or the ceiling is reached.
Constructors
- ReadinessGate({required SceneReader reader, required CoordinateResolver resolver, int pollIntervalMs = 100})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pollIntervalMs → int
-
final
- reader → SceneReader
-
final
- resolver → CoordinateResolver
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
awaitReady(
{required String glintId, int ceilingMs = 5000, int staleAfterMs = 1500}) → Future< ReadinessResult> -
Polls until
glintIdis hittable and not faded to opacity 0, or the ceiling. A screen whose content has not changed forstaleAfterMsand still lacks the target fails fast as notFound (with id suggestions) — a static screen will not grow the node by waiting. -
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