on method

  1. @JS("on")
Future on(
  1. String eventName,
  2. Function func
)

Add a listener to be triggered for each eventName event.

Implementation

@JS("on")
external Future on(String eventName, Function func);