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
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deactivate() → void
The framework calls this method whenever it removes this StateMVC object from the tree.
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 a dependency of this StateMVC object changes.
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.
didUpdateWidget(StatefulWidget oldWidget) → void
Override this method to respond when the widget changes (e.g., to start implicit animations).
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.
initAsync() Future<bool>
Initialize any 'time-consuming' operations at the beginning. Initialize asynchronous items essential to the Mobile Applications. Typically called within a FutureBuilder() widget.
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
onAsyncError(FlutterErrorDetails details) bool
Supply an 'error handler' routine if something goes wrong in the corresponding initAsync() routine. Returns true if the error was properly handled.
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
toString() String
A string representation of this object.
inherited

Operators

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