readSemantics method
The semantics tree, as semantics_capture.dart shapes it.
The entry id is withheld until there is a tree, so a poll settling on the id keeps waiting through the frame that builds it rather than accepting "nothing yet" as this entry's answer.
Implementation
InspectSemantics readSemantics() {
var root = captureSemanticsTree();
return InspectSemantics(
entryId: root == null ? null : entryIdOf(),
root: root,
);
}