Represents an event listener.

See also:

Fields

onEvent:() ‑> Void

The callback function that is called when a matching event is sent.

name:String

The name of the events this listener is listening to.

mask:Int

The mask of the events this listener is listening to.