setAppState method
Assign the class with the AppState object.
Implementation
bool setAppState(v.AppState? state) {
// Don't continue if an app called an app.
final set = state != null && (_appState == null || hotReload);
if (set) {
//
_appState = state;
// Assign the 'app' object to the app's view
state.app = this;
}
return set;
}