semanticTreeDebugString method

String semanticTreeDebugString({
  1. bool includeState = true,
})

Returns a deterministic, redaction-aware semantic tree dump.

Use this directly in failure messages or while authoring tests:

print(tester.semanticTreeDebugString());

Implementation

String semanticTreeDebugString({bool includeState = true}) {
  _assertNotDisposed('semanticTreeDebugString');
  return semantics().debugTree(includeState: includeState);
}