removeEvent method
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;
}