onHighlightNode method
Implementation
void onHighlightNode(int? id, Map<String, dynamic> params) {
_highlightElement?.debugHideHighlight();
int nodeId = params['nodeId'];
Element? element = document.controller.view.getEventTargetById<Element>(nodeId);
if (element != null) {
element.debugHighlight();
_highlightElement = element;
}
sendToFrontend(id, null);
}