tap method

bool tap(
  1. String anchorId
)

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).

Implementation

bool tap(String anchorId) {
  final handler = _handlers[ZfaAnchors.normalize(anchorId)];
  if (handler == null) return false;
  handler();
  return true;
}