setSelectionById method

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

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.

Implementation

@protected
bool setSelectionById(String id, [String groupName]) {
  return setSelection(toObject(id), groupName);
}