registerForTesting static method
Registers an entry directly, bypassing the Semantics walk.
Test-only. Provides the same hot-path fields as register so widget tests for action extensions (tap, type, scroll, …) can construct entries without running the snapshot extension.
The returned ref string is identical in format to production refs (eN).
Implementation
static String registerForTesting({
required Rect rect,
required Element element,
required String groupId,
required bool isTextField,
}) =>
register(
rect: rect,
element: element,
groupId: groupId,
isTextField: isTextField,
);