removeEvent method

bool removeEvent(
  1. int instanceId,
  2. int nodeId,
  3. String eventName
)

Implementation

bool removeEvent(int instanceId, int nodeId, String eventName) {
  bool removeSuccess = false;
  var instanceMap = _instanceEventMap[instanceId];
  if (instanceMap != null) {
    var nodeEventSet = instanceMap[nodeId]??<String>{};
    if (nodeEventSet.contains(eventName)) {
      nodeEventSet.remove(eventName);
      removeSuccess = true;
    }
    instanceMap[nodeId] = nodeEventSet;
  }
  return removeSuccess;
}