subscribe method

void subscribe(
  1. Object eventName,
  2. EventCallback f
)

Implementation

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