getParentChain method Null safety

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

Returns JSON representing the chain of DiagnosticsNode instances from root of thee 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));
}