ZfaAnchorRegistry class
The anchor → tap-handler registry backing debugTapAnchor.
The emitted ZfaButton registers its real onPressed under its
contract id while mounted; the VM-service driver (or a test lane)
invokes it through tap. Handlers are plain void Function()
closures — pure Dart, no Flutter types, so the registry lives in
the framework and the driver seam works on every platform.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registered
→ List<
String> -
The registered anchor ids, sorted (driver diagnostics).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Drops every handler (test-lane teardown).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
String anchorId, void onTap()) → void -
Registers
onTapunderanchorId(bare id orzfa:key — normalized). Re-registering replaces the handler (idempotent remounts must not stack callbacks). -
tap(
String anchorId) → bool - Invokes the registered handler. Returns whether the anchor was found AND tapped (an unknown anchor refuses honestly — the driver harness must never silently no-op).
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String anchorId) → void -
Removes the handler for
anchorId(widget unmount).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited