Event class

Event class. This is send back to the subscriber when an event is triggered, Subscriber can use the instance to retrieve the event data and other event related parameters. eventName is a mandatory parameter and will represent the current event.

Constructors

Event(String eventName, [ Object eventData = null, Object sender = null ])

Properties

eventData → Object
If the event associated has any event data, then this object holds reference to it. Few events might not return data. Validate this field before using it.
final
eventName → String
What event the emitter triggers. This is very useful to perform actions if you have single event handler to perform multiple operations.
final
handled ↔ bool
Getter to fetch handled information.
read / write
sender → Object
If this field is valid, then it shows who send the event to. This can be very useful while debugging systems with large event queues.
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited