on method

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

Implementation

void on(String event, Function([dynamic, dynamic]) callback) =>
    jsu.callMethod(this, 'on', [event, allowInterop(callback)]);