once method

Evented once(
  1. String type,
  2. Function fn, [
  3. dynamic context
])

Behaves as on(…), except the listener will only get fired once and then removed.

Implementation

external Evented once(String type, Function fn, [dynamic context]);