subscribe method
Implementation
void subscribe(Object eventName, EventCallback f) {
_emap.putIfAbsent(eventName, () => <EventCallback>[]).add(f);
}
void subscribe(Object eventName, EventCallback f) {
_emap.putIfAbsent(eventName, () => <EventCallback>[]).add(f);
}