on method

void on()

Implementation

void on() {
  if (_listen) return;
  _listen = true;
  emitter.addListener(callback);
}