setEventListener method

void setEventListener(
  1. int instanceId,
  2. int id,
  3. String eventName
)

Implementation

void setEventListener(int instanceId, int id, String eventName) {
  LogUtils.dRender("ID:$id, set event, event:$eventName");
  bool needAdd = addEvent(instanceId, id, eventName);
  if (needAdd) {
    var uiNode = controllerManager.findNode(instanceId, id);
    if (uiNode != null) {
      uiNode.addEvent({eventName});
      addNullUINodeIfNeeded(uiNode);
    }
  }
}