Transition<Event, State> constructor
const
Transition<Event, State> ({
- required State currentState,
- required Event event,
- required State nextState,
Occurs when an event is added
after onEventReceived
has been called
but before the bloc's State
has been updated.
A Transition consists of the currentState
, the event which was
added
, and the nextState
.
Implementation
const Transition({
required State currentState,
required this.event,
required State nextState,
}) : super(currentState: currentState, nextState: nextState);