SemanticsScroller class
Scroller backed by Flutter's semantics actions.
Constructors
- SemanticsScroller({required String scrollableStableId, required UiSnapshot? captureSnapshot(), int settleMs = UiSettleTiming.scrollAnimationMs, double stallEpsilonPx = 4.0})
Properties
- captureSnapshot → UiSnapshot? Function()
-
Same factory the Explorer uses — typically
() => UiSnapshot.capture(...).final - hashCode → int
-
The hash code for this object.
no setterinherited
- position → double?
-
Current logical scroll position (e.g.
position.pixels).no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollableStableId → String
-
Stable ID of the scrollable node (as produced by the tree pipeline).
final
- settleMs → int
-
How long to wait for the scroll animation to settle before reading
post-step position.
final
- stallEpsilonPx → double
-
If the scroll position changes by less than this many logical pixels after
a step, treat it as a stall — the scrollable hit an extent or otherwise
refused the action.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
positionFromSnapshot(
UiSnapshot snapshot) → double? -
Snapshot-reusing variant of position.
override
-
reset(
) → void -
Clear any per-exploration state (exhaustion sets, caches, step counters).
inherited
-
scrollByPixels(
double pixels) → Future< bool> -
Coarse-step pixel approximation.
override
-
stepBackward(
) → Future< bool> -
Advance one step backward (toward the start of the scrollable).
override
-
stepForward(
) → Future< bool> -
Advance one step forward.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited