notify method
void
notify()
Calls all attached listeners and detaches one-shot listeners after notifying.
Implementation
void notify() {
_listeners.values.forEach((listener) => listener.call());
_oneShotKeys.forEach(detach);
_oneShotKeys.clear();
}