debugDumpSemanticsTree function

void debugDumpSemanticsTree(
  1. [DebugSemanticsDumpOrder childOrder = DebugSemanticsDumpOrder.traversalOrder]
)

Prints a textual representation of the semantics trees.

It prints the trees associated with every RenderView in RendererBinding.renderView, separated by two blank lines.

Semantics trees are only constructed when semantics are enabled (see SemanticsBinding.semanticsEnabled). If a semantics tree is not available, a notice about the missing semantics tree is printed instead.

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

Implementation

void debugDumpSemanticsTree([DebugSemanticsDumpOrder childOrder = DebugSemanticsDumpOrder.traversalOrder]) {
  debugPrint(_debugCollectSemanticsTrees(childOrder));
}