didPushRouteInformation method Null safety
- RouteInformation routeInformation
override
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
Observers are expected to return true if they were able to handle the notification. Observers are notified in registration order until one returns true.
This method exposes the pushRouteInformation
notification from
SystemChannels.navigation.
The default implementation is to call the didPushRoute directly with the RouteInformation.location.
Implementation
@override
Future<bool> didPushRouteInformation(RouteInformation routeInformation) async {
assert(hasListeners);
_platformReportsNewRouteInformation(routeInformation);
return true;
}