Remove a specific event listener for a specific type. Note that if the same listener callback is reused only the first one is removed. The once parameter must match for the listener to be removed.
The event type that the listener is listening to.
The listener/callback to remove.
Optional
once: booleanWas the listener marked as a once-only event. False by default.
Returns true if a listener was removed, false otherwise.
Remove a specific untyped event listener. Note that if the same listener callback is reused only the first one is removed.
Returns true if a listener was removed, false otherwise.
Add event listener for a specific event type. Chainable.
The event type to listen to. Any other event type will not invoke this listener callback.
The listener/callback to invoke when the event is emitted.
Optional
once: booleanShould the listener be removed after being invoked once? False by default.
Similar to WidgetEventEmitter#on, but listens to any event type. Untyped event listeners have a lower priority than typed event listeners. Does not support listening only once. Chainable.
The listener/callback to invoke when an event is emitted.
An interface for UI classes that can emit events, such as a Widget or a Root.