debugDumpSemanticsTree function Null safety

void debugDumpSemanticsTree(
  1. 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.


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