getSelectedSummaryWidget method

String getSelectedSummaryWidget(
  1. String previousSelectionId,
  2. 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 DiagnosticsNode is reused.


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