setSelectionById method

Future<Response> setSelectionById(
  1. String isolateId,
  2. String objectGroup, {
  3. String? objectId,
})

Sets widget selection by ID.

Implementation

Future<Response> setSelectionById(String isolateId, String objectGroup,
    {String? objectId}) async {
  return await vmService.callServiceExtension(
    'ext.flutter.inspector.setSelectionById',
    isolateId: isolateId,
    args: {
      'arg': objectId,
      'objectGroup': objectGroup,
    },
  );
}