getObjectByHeapObjectId method

Future<RemoteObject> getObjectByHeapObjectId(
  1. HeapSnapshotObjectId objectId, {
  2. String? objectGroup,
})

objectGroup Symbolic group name that can be used to release multiple objects. Returns: Evaluation result.

Implementation

Future<runtime.RemoteObject> getObjectByHeapObjectId(
    HeapSnapshotObjectId objectId,
    {String? objectGroup}) async {
  var result = await _client.send('HeapProfiler.getObjectByHeapObjectId', {
    'objectId': objectId,
    if (objectGroup != null) 'objectGroup': objectGroup,
  });
  return runtime.RemoteObject.fromJson(
      result['result'] as Map<String, dynamic>);
}