Prints a textual representation of the entire semantics tree. This will only work if there is a semantics client attached. Otherwise, the tree is empty and this will print "null".
Source
void debugDumpSemanticsTree() { debugPrint(RendererBinding.instance?.renderView?.debugSemantics?.toStringDeep() ?? 'Semantics not collected.'); }