stateInit method
Called by every StateX object associated with it.
Override this method to perform initialization,
Implementation
void stateInit(covariant State state) {
assert(() {
if (_debugPrintEvents) {
debugPrint(
'$_consoleLeadingLine stateInit($state) in $_consoleClassName');
}
return true;
}());
}