SettleDetector class

§8.4 settle detection. Polls the scheduler phase; once quietFramesNeeded quiet polls land it checks for loading affordances (a spinner is "frame- stable" while loading) and keeps waiting up to the ceiling if any remain. A screen that never goes quiet (shimmer, Lottie, marquee) is settled once two tree reads stabilityGapMs apart carry the same content signature.

Constructors

SettleDetector({required FlutterRuntime runtime, required SceneReader reader, int pollIntervalMs = 100, int stabilityGapMs = 250, Future<String?> notResumed()?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
notResumed → Future<String?> Function()?
Names the lifecycle when the app is not resumed; settling then throws AppNotResumedError instead of waiting on frames that never come.
final
pollIntervalMs → int
final
reader → SceneReader
final
runtime → FlutterRuntime
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stabilityGapMs → int
final

Methods

awaitSettle({int ceilingMs = 5000, int quietFramesNeeded = 3, bool checkLoadingAffordances = true, int quietGraceMs = 1500}) → Future<SettleResult>
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