IEvent class

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. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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.
    • Returns the name of the event.
  • removeListener(IEventListener listener) → void
    Removes a listener, so that it no longer receives notifications for this event. [...]
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed. [...]
    inherited
    notify(String correlationId, Parameters args) → void
  • Notifies the component about occured event.
      • correlationId (optional) transaction id to trace execution through call chain.
      • args notification arguments.
  • inherited
    toString() → String
    Returns a string representation of this object.
    inherited

    Operators

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