StateListener typedef
StateListener =
void Function(SimpleAppState nowState)
A listener that is notified when a logical state change is committed. In batch processing, it returns only once at the end of the processing.
Implementation
typedef StateListener = void Function(SimpleAppState nowState);