Results for “WidgetsBindingObserver”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
API reference
- WidgetsBindingObserverclass
Interface for classes that register with the Widgets layer binding. widgets.WidgetsBindingObserver WidgetsBindingObserver Widgets Binding Observer class widgets
- WidgetsBindingObserver.newconstructor
widgets.WidgetsBindingObserver.WidgetsBindingObserver.new WidgetsBindingObserver new Widgets Binding Observer.new constructor widgets
Version changes
- Added AppLifecycleState.hidden3.13.0breaking
enum is used to indicate which lifecycle state the application is in when `WidgetsBindingObserver.didChangeAppLifecycleState` is called. If code has switch statements that handle all cases of the `AppLifecycleState
- Deprecated RouteInformation.location3.13.0deprecated
final String myPath = myRoute.uri.path; ``` Code before migration: ```dart class MyObserverState extends State with WidgetsBindingObserver { @override Future didPushRoute(String route) => _handleRoute(route); } ``` Code after migration: ```dart class MyObserverState