dispatch method

void dispatch(
  1. Action action
)

Dispatching an action is just like firing an event.

When the action dispatches, it notifies all the Controllers those who override the onAction(action Action) method and also notifes all the effects - registered throughout the Controllers.

Implementation

void dispatch(Action action) {
  _dispatcher.add(action);
}