highlightNode method
Future<void>
highlightNode(
- HighlightConfig highlightConfig, {
- NodeId? nodeId,
- BackendNodeId? backendNodeId,
- RemoteObjectId? objectId,
- String? selector,
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
objectId must be specified.
highlightConfig
A descriptor for the highlight appearance.
nodeId
Identifier of the node to highlight.
backendNodeId
Identifier of the backend node to highlight.
objectId
JavaScript object id of the node to be highlighted.
selector
Selectors to highlight relevant nodes.
Implementation
Future<void> highlightNode(
HighlightConfig highlightConfig, {
dom.NodeId? nodeId,
dom.BackendNodeId? backendNodeId,
runtime.RemoteObjectId? objectId,
String? selector,
}) async {
await _client.send('Overlay.highlightNode', {
'highlightConfig': highlightConfig,
if (nodeId != null) 'nodeId': nodeId,
if (backendNodeId != null) 'backendNodeId': backendNodeId,
if (objectId != null) 'objectId': objectId,
if (selector != null) 'selector': selector,
});
}