StateChange<State> constructor

const StateChange<State>({
  1. required State currentState,
  2. required State nextState,
})

A StateChange represents the change from one State to another. A StateChange consists of the currentState and nextState.

Implementation

const StateChange({required this.currentState, required this.nextState});