emit method
void
emit(
- dynamic eventName, [
- dynamic arg
Implementation
void emit(eventName, [arg]) {
final callbackList = _emap[eventName];
if (callbackList == null) return;
for (var callback in [...callbackList]) {
callback(arg);
}
}