on method

void on(
  1. String eventType,
  2. Function handler
)

Implementation

void on(String eventType, Function handler) {
  _talkJsInbox.on(eventType, allowInterop(handler));
}