on method

void on(
  1. dynamic eventName,
  2. EventCallback f
)

Implementation

void on(eventName, EventCallback f) {
  if (eventName == null || f == null) return;
  _emap[eventName] ??= <EventCallback>[];
  _emap[eventName]!.add(f);
}