onEvent method

void onEvent(
  1. dynamic self,
  2. EventInvoker<T> invoker
)

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;
}