on method

void on(
  1. String command,
  2. dynamic callback([
    1. dynamic data,
    2. dynamic foo
    ])
)

Implementation

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