on method
Implementation
Listener on(String typeUpdate, dynamic Function(dynamic update) callback,
Object? context) {
return emitter.on(typeUpdate, context, (ev, context) {
if (ev.eventData != null) {
callback(ev.eventData);
return;
}
});
}