notify static method

void notify(
  1. IContext? context,
  2. List? components,
  3. Parameters args
)

Notifies multiple components.

To be notified components must implement INotifiable interface. If they don't the call to this method has no effect.

  • context (optional) a context to trace execution through call chain.
  • components a list of components that are to be notified.
  • args notification arguments.

See notifyOne See INotifiable

Implementation

static void notify(IContext? context, List? components, Parameters args) {
  if (components == null) return;

  for (var component in components) {
    Notifier.notifyOne(context, component, args);
  }
}