on method

void on(
  1. String event,
  2. dynamic callback(
    1. dynamic message
    )
)

Generic handler Js for events

Implementation

external void on(String event, Function(dynamic message) callback);