onEvent method
Implementation
void onEvent(self, EventInvoker<T> invoker) {
if (_call != null && _registrar != self) {
throw "Already have a call from $_registrar (new registrar is $self)";
}
this._call = invoker;
this._registrar = self;
}