on method

EventEmitter on(
  1. dynamic eventName,
  2. Function listener
)

Implementation

external EventEmitter on(eventName, Function listener);