on method

dynamic on(
  1. dynamic event,
  2. dynamic func
)

Implementation

external on(dynamic event, dynamic func);