setSelectionById method

  1. @protected
bool setSelectionById(
  1. String? id,
  2. [String? groupName]

Set the WidgetInspector selection to the object matching the specified id if the object is valid object to set as the inspector selection.

Returns true if the selection was changed.

The groupName parameter is not required by is added to regularize the API surface of methods called from the Flutter IntelliJ Plugin.


bool setSelectionById(String? id, [ String? groupName ]) {
  return setSelection(toObject(id), groupName);