IEvent class abstract

An interface for Events, which are part of the Command design pattern. Events allows to send asynchronious notifications to multiple subscribed listeners.

See IEventListener

Inheritance
Implementers

Constructors

IEvent()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(IEventListener listener) → void
Adds a listener to receive notifications for this event.
getListeners() List<IEventListener>
Gets all subscribed listeners.
getName() String
Gets the event name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(String? correlationId, Parameters args) → void
Notifies the component about occured event.
inherited
removeListener(IEventListener listener) → void
Removes a listener, so that it no longer receives notifications for this event.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited