didPushRouteInformation method
- @override
- @mustCallSuper
- RouteInformation routeInformation
inherited
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
Implementation
@override
@mustCallSuper
Future<bool> didPushRouteInformation(
RouteInformation routeInformation) async {
//
final handled = super.didPushRouteInformation(routeInformation);
// Loop through all the StateX objects
final list = statesList(reversed: true, remove: this);
for (final StateX state in list) {
await state.didPushRouteInformation(routeInformation);
}
return handled;
}