once method

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

Implementation

void once(String eventName, Function callback) =>
    addListener(eventName, callback, once: true);