StateMutationCastedCallback<T> typedef
StateMutationCastedCallback<T> =
void Function(T oldState, T newState)
Implementation
typedef StateMutationCastedCallback<T> = void Function(T oldState, T newState);