removeListener method
Implementation
@VoltronMethod(kModuleRemoveListener)
void removeListener(String name, JSPromise promise) {
if (!_eventMap.containsKey(name)) {
return;
}
var count = _eventMap[name]!;
if (count == 1) {
handleRemoveListener(name);
_eventMap.remove(name);
} else {
count--;
_eventMap.remove(name);
_eventMap[name] = count;
}
}