on method

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

Implementation

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