oneTimeOn method

EventHandler oneTimeOn(
  1. String name,
  2. EventFn fn
)

Implementation

EventHandler oneTimeOn(String name, EventFn fn) {
  var main =
      _mainEventHandler[name] = _mainEventHandler[name] ?? EventPool(name);
  return main.oneTimeOn(fn);
}