pushNodesByBackendIdsToFrontend method

Future<List<NodeId>> pushNodesByBackendIdsToFrontend(
  1. List<BackendNodeId> backendNodeIds
)

Requests that a batch of nodes is sent to the caller given their backend node ids. backendNodeIds The array of backend node ids. Returns: The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.

Implementation

Future<List<NodeId>> pushNodesByBackendIdsToFrontend(
    List<BackendNodeId> backendNodeIds) async {
  var result = await _client.send('DOM.pushNodesByBackendIdsToFrontend', {
    'backendNodeIds': [...backendNodeIds],
  });
  return (result['nodeIds'] as List)
      .map((e) => NodeId.fromJson(e as int))
      .toList();
}