getSelectedSummaryWidget method

String getSelectedSummaryWidget (String previousSelectionId, String groupName)

Returns a DiagnosticsNode representing the currently selected Element if the selected Element should be shown in the summary tree otherwise returns the first ancestor of the selected Element shown in the summary tree.

If the currently selected Element is identical to the Element referenced by previousSelectionId then the previous DiagnosticNode is reused.

Implementation

String getSelectedSummaryWidget(String previousSelectionId, String groupName) {
  return _safeJsonEncode(_getSelectedSummaryWidget(previousSelectionId, groupName));
}