getContentQuads method

Future<List<Quad>> getContentQuads({
  1. NodeId? nodeId,
  2. BackendNodeId? backendNodeId,
  3. RemoteObjectId? objectId,
})

Returns quads that describe node position on the page. This method might return multiple quads for inline nodes. nodeId Identifier of the node. backendNodeId Identifier of the backend node. objectId JavaScript object id of the node wrapper. Returns: Quads that describe node layout relative to viewport.

Implementation

Future<List<Quad>> getContentQuads(
    {NodeId? nodeId,
    BackendNodeId? backendNodeId,
    runtime.RemoteObjectId? objectId}) async {
  var result = await _client.send('DOM.getContentQuads', {
    if (nodeId != null) 'nodeId': nodeId,
    if (backendNodeId != null) 'backendNodeId': backendNodeId,
    if (objectId != null) 'objectId': objectId,
  });
  return (result['quads'] as List)
      .map((e) => Quad.fromJson(e as List))
      .toList();
}