stateOf<T extends StatefulWidget> method
Supply this version of StateX
Implementation
@override
StateX? stateOf<T extends StatefulWidget>() {
var state = super.stateOf<T>();
if (state != null) {
assert(() {
if (state is AppStateX) {
debugPrint(
"'${state.toStringShort()}' is type, AppStateX.\nIn Fluttery, 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;
}