on method

void on(
  1. String eventType,
  2. Function handler
)

Implementation

external void on(String eventType, Function handler);