on method
Implementation
void on(BaseEventType type, StandartUserCommand func) {
if (handlers[type.getName()] == null) {
handlers[type.getName()] = [];
}
handlers[type.getName()]!.add(LongPollEventHandler(type, func));
}
void on(BaseEventType type, StandartUserCommand func) {
if (handlers[type.getName()] == null) {
handlers[type.getName()] = [];
}
handlers[type.getName()]!.add(LongPollEventHandler(type, func));
}