setEventListener method
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);
}
}
}