TapRecord class

TouchAutoCapture — Extracts a human-readable label from a Flutter touch event target by walking up the element tree.

Used by AIAgent to auto-track every tap in the app without any developer code changes (zero-config analytics).

Strategy:

  1. Read the touched element's semanticsLabel (best signal).
  2. Use the element's label text from tree walking.
  3. Fallback to the widget's key or type.
  4. Last resort: "Unknown Element". Tap record for rage click detection.

Constructors

TapRecord({required String label, required String screen, required int timestamp, int? x, int? y})

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen String
final
timestamp int
final
x int?
final
y int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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