onEvent method

Future<void> onEvent(
  1. ApplicationEvent event
)

Broadcasts the given event to all appropriate listeners.

If the listener supports async execution, it may be executed asynchronously depending on implementation.

multicaster.multicastEvent(MyAppStartedEvent());

Implementation

Future<void> onEvent(ApplicationEvent event) async {}