Google is committed to advancing racial equity for Black communities. See how.

exposeDiagnosticsTree method

void exposeDiagnosticsTree (String name)

Mounts an Inspect file at name.inspect to the hub that exposes the root diagnostic hierarchy for this component.

Implementation

static void exposeDiagnosticsTree(String name) {
  Inspect.onDemand(name, (Node inspectMountRoot) {
    var diagnosticsRoot =
        WidgetsBinding.instance.renderViewElement.toDiagnosticsNode();
    inspectFromDiagnostic(diagnosticsRoot, inspectMountRoot);
  });
}