onTransition abstract method

  1. @protected
  2. @mustCallSuper
void onTransition(
  1. IsolateBloc bloc,
  2. Transition transition
)

Called whenever a transition occurs in any bloc with the given bloc and transition. A transition occurs when a new event is added and mapEventToState executed. onTransition is called before a bloc's state has been updated.

Implementation

@protected
@mustCallSuper
void onTransition(IsolateBloc bloc, Transition transition);