stateOf<T extends StatefulWidget> method
Retrieve the State object by its StatefulWidget. Returns null if not found.
Implementation
@override
StateX? stateOf<T extends StatefulWidget>() {
final state = super.stateOf<T>();
return state == null ? null : state as StateX;
}