StateListener mixin StateX class State Object Controller Event handling

Responsible for the event handling in all the Controllers and State objects.

dartdoc:

Implemented types
Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
A unique key is assigned to all State Controllers, State objects Used in large projects to separate objects into teams.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
deactivate() → void
The framework calls this method whenever it removes this StateX object from the tree.
detachedLifecycleState() → void
Either be in the progress of attaching when the engine is first initializing or after the view being destroyed due to a Navigator pop.
didChangeAccessibilityFeatures() → void
Called when the system changes the set of active accessibility features.
didChangeAppLifecycleState(AppLifecycleState state) → void
Called when the system puts the app in the background or returns the app to the foreground.
didChangeDependencies() → void
Called when immediately after initState. Otherwise called only if a dependency of an InheritedWidget.
didChangeLocales(List<Locale>? locales) → void
Called when the system tells the app that the user's locale has changed.
didChangeMetrics() → void
Called when the application's dimensions change. For example, when a phone is rotated.
didChangePlatformBrightness() → void
Brightness changed.
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes.
didHaveMemoryPressure() → void
Called when the system is running low on memory.
didPop() → void
Called when this State is popped off a route.
override
didPopNext() → void
The top route has been popped off, and this route shows up.
override
didPopRoute() Future<bool>
Called when the system tells the app to pop the current route. For example, on Android, this is called when the user presses the back button.
didPush() → void
Called when this State is first added to as a Route observer?!
override
didPushNext() → void
New route has been pushed, and this State object's route is no longer current.
override
didPushRoute(String route) Future<bool>
Called when the host tells the app to push a new route onto the navigator.
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
didRequestAppExit() Future<AppExitResponse>
Called when a request is received from the system to exit the application. Exiting the application can proceed with AppExitResponse.exit; Cancel and do not exit the application with AppExitResponse.cancel;
didUpdateWidget(StatefulWidget oldWidget) → void
Override this method to respond when the StatefulWidget is recreated.
dispose() → void
The framework calls this method when this StateX object will never build again. Note: YOU WILL HAVE NO IDEA WHEN THIS WILL RUN in the Framework.
hiddenLifecycleState() → void
All views of an application are hidden, either because the application is about to be paused (on iOS and Android), or because it has been minimized or placed on a desktop that is no longer visible (on non-web desktop), or is running in a window or tab that is no longer visible (on the web).
inactiveLifecycleState() → void
The application is in an inactive state and is not receiving user input.
initState() → void
The framework will call this method exactly once. Only when the StateX object is first created.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pausedLifecycleState() → void
The application is not currently visible to the user, not responding to user input, and running in the background.
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
resumedLifecycleState() → void
The application is visible and responding to user input.
toString() String
A string representation of this object.
inherited
updateNewStateX(covariant StateX<StatefulWidget> oldState) → void
A State object may be unexpectedly re-created by a UniqueKey() in a parent for example. You have to 'update' the properties of the new StateX object using the old StateX object because it's going to be disposed of.

Operators

operator ==(Object other) bool
The equality operator.
inherited