getParentChain method

  1. @protected
String getParentChain(
  1. String id,
  2. String groupName
)

Returns JSON representing the chain of DiagnosticsNode instances from root of the tree to the Element or RenderObject matching id.

The JSON contains all information required to display a tree view with all nodes other than nodes along the path collapsed.

Implementation

@protected
String getParentChain(String id, String groupName) {
  return _safeJsonEncode(_getParentChain(id, groupName));
}