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.


String getSelectedSummaryWidget(String? previousSelectionId, String groupName) {
  if (previousSelectionId != null) {
    debugPrint('previousSelectionId is deprecated in API');
  return _safeJsonEncode(_getSelectedSummaryWidget(null, groupName));