queryObjects method

Future<RemoteObject> queryObjects(
  1. RemoteObjectId prototypeObjectId, {
  2. String? objectGroup,
})

prototypeObjectId Identifier of the prototype to return objects for. objectGroup Symbolic group name that can be used to release the results. Returns: Array with objects.

Implementation

Future<RemoteObject> queryObjects(RemoteObjectId prototypeObjectId,
    {String? objectGroup}) async {
  var result = await _client.send('Runtime.queryObjects', {
    'prototypeObjectId': prototypeObjectId,
    if (objectGroup != null) 'objectGroup': objectGroup,
  });
  return RemoteObject.fromJson(result['objects'] as Map<String, dynamic>);
}