onDispatch<TEvent> abstract method

void onDispatch<TEvent>(
  1. TEvent event,
  2. Set<EventHandler> handlers
)

When the event is dispatched.

handlers will be executed based on the DispatchStrategy.

Implementation

void onDispatch<TEvent>(
  TEvent event,
  Set<EventHandler> handlers,
);