removeEventListener method

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

Implementation

void removeEventListener(int instanceId, int id, String eventName) {
  LogUtils.dRender("remove event ID:$id, event:$eventName");
  bool needRemove = removeEvent(instanceId, id, eventName);
  if (needRemove) {
    var uiNode = controllerManager.findNode(instanceId, id);
    if (uiNode != null) {
      uiNode.removeEvent({eventName});
      addNullUINodeIfNeeded(uiNode);
    }
  }
}