addListener method

void addListener(
  1. JSFunction callback
)

Registers an event listener callback to an event. callback Called when an event occurs. The parameters of this function depend on the type of event.

Implementation

void addListener(JSFunction callback) {
  _wrapped.addListener(callback);
}