addHandler<Tevent> method
Add a handler to handle a specific event.
Implementation
@protected
void addHandler<Tevent>(void Function(Tevent event) handler) {
_handlers[Tevent] = (Object e) => handler(e as Tevent);
}
Add a handler to handle a specific event.
@protected
void addHandler<Tevent>(void Function(Tevent event) handler) {
_handlers[Tevent] = (Object e) => handler(e as Tevent);
}