EmittedEvent 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
- EmittedEvent(String eventName, [Object? eventData, Object? sender])
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.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited