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'];
  if (nodeId == null) return;
  Node? node = view.getBindingObject<Node>(
      Pointer.fromAddress(view.getTargetIdByNodeId(nodeId)));
  if (node != null) {
    inspectedNode = node;
  }
  sendToFrontend(id, null);
}