on method

void on(
  1. String eventName,
  2. Function callback
)

Implementation

void on(String eventName, Function callback) =>
    addListener(eventName, callback);