on method

  1. @internal
void on(
  1. String event,
  2. Function callback
)

This should not be used in user code. Use stream(event) instead.

Implementation

@internal
external void on(String event, Function callback);