StateListener mixin

Responsible for the event handling in all the Controllers, Listeners and Views.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
keyId String
A unique key is assigned to all State Controllers, State objects, and listeners. 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 StateMVC 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 this StateMVC object is first created immediately after initState. Otherwise called only if this State object's Widget is a dependency of InheritedWidget.
didChangeLocale(Locale locale) → 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
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes.
didHaveMemoryPressure() → void
Called when the system is running low on memory.
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.
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.
didUpdateWidget(StatefulWidget oldWidget) → void
Override this method to respond when the StatefulWidget is recreated.
dispose() → void
The framework calls this method when this StateMVC object will never build again. Note: THERE IS NO GUARANTEE THIS METHOD WILL RUN in the Framework.
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 StateMVC 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

Operators

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