ReaderPointerTracker class

Internal use only. Turns the raw pointer stream above the native reader into controls and narration signals.

Reader paths that report native tap feedback (nativeTapFeedback) classify taps natively, so only drags are handled here. Other readers keep the legacy edge/center tap classification.

Constructors

ReaderPointerTracker({required void onDeliberateDrag(), required void onUserNavigation(), required void onEdgeTap(), required void onCenterTap()})

Properties

hashCode → int
The hash code for this object.
no setterinherited
nativeTapFeedback ↔ bool
Whether the native reader reports taps itself.
getter/setter pair
onCenterTap → void Function()
Legacy tap away from the edges. Only reported while nativeTapFeedback is false.
final
onDeliberateDrag → void Function()
A drag past the pan slop. Hides active controls; never changes narration following.
final
onEdgeTap → void Function()
Legacy tap near a screen edge. Only reported while nativeTapFeedback is false.
final
onUserNavigation → void Function()
The user took manual control of navigation (narration manual mode).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollMode ↔ bool
Scroll mode. Native readers then enter manual mode from a single-pointer reading-axis drag, because scrolling gives no native navigation outcome to observe.
getter/setter pair

Methods

cancel(int pointer) → void
down(int pointer, Offset origin, {required double tapSlop, required double panSlop}) → void
move(int pointer, Offset position) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
up(int pointer, Offset position, {required double width}) → void

Operators

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

Constants

legacyEdgeWidth → const double
Edge width for the legacy tap classification, in logical pixels.