onSetInspectedNode method

void onSetInspectedNode(
  1. int? id,
  2. Map<String, dynamic> params
)

Implementation

void onSetInspectedNode(int? id, Map<String, dynamic> params) {
  int nodeId = params['nodeId'];
  Node? node = elementManager.getEventTargetByTargetId(nodeId);
  if (node != null) {
    inspectedNode = node;
  }
  sendToFrontend(id, null);
}