state property
Supply this version of StateX
Implementation
@override
StateX? get state {
var state = super.state;
if (state != null) {
assert(() {
if (state is AppStateX) {
debugPrint(
"'${state.toStringShort()}' is type, AppStateX. Should use the getter, appState, instead.");
}
return true;
}());
if (state is AppStateX) {
state = null; // In Fluttery, AppStateX is not a subtype of this StateX
}
}
return state == null ? null : state as StateX;
}