debugDumpSemanticsTree function

void debugDumpSemanticsTree (DebugSemanticsDumpOrder childOrder)

Prints a textual representation of the entire semantics tree. This will only work if there is a semantics client attached. Otherwise, a notice that no semantics are available will be printed.

The order in which the children of a SemanticsNode will be printed is controlled by the childOrder parameter.

Implementation

void debugDumpSemanticsTree(DebugSemanticsDumpOrder childOrder) {
  debugPrint(RendererBinding.instance?.renderView?.debugSemantics?.toStringDeep(childOrder: childOrder) ?? 'Semantics not collected.');
}