notify method
- IContext? context,
- String eventName,
- Parameters args
Fires event specified by its name and notifies all registered
IEventListener listeners
context
(optional) a context to trace execution through call chain.eventName
the name of the event that is to be fired.args
the event arguments (parameters).
Implementation
/// - [context] (optional) a context to trace execution through call chain.
/// - [eventName] the name of the event that is to be fired.
/// - [args] the event arguments (parameters).
void notify(IContext? context, String eventName, Parameters args) {
var event = findEvent(eventName);
if (event != null) event.notify(context, args);
}