notify method

void notify(
  1. String? correlationId,
  2. String eventName,
  3. Parameters args
)

Fires event specified by its name and notifies all registered IEventListener listeners

  • correlationId (optional) transaction id to trace execution through call chain.
  • eventName the name of the event that is to be fired.
  • args the event arguments (parameters).

Implementation

/// - [correlationId]     (optional) transaction id to trace execution through call chain.
/// - [eventName]         the name of the event that is to be fired.
/// - [args]              the event arguments (parameters).

void notify(String? correlationId, String eventName, Parameters args) {
  var event = findEvent(eventName);

  if (event != null) event.notify(correlationId, args);
}