routerReportsNewRouteInformation method

  1. @override
void routerReportsNewRouteInformation(
  1. RouteInformation routeInformation, {
  2. RouteInformationReportingType type = RouteInformationReportingType.none,
})
override

This is called when the router says there's a new route - and we should report that route back to the browser/OS

Implementation

@override
void routerReportsNewRouteInformation(RouteInformation routeInformation,
    {RouteInformationReportingType type =
        RouteInformationReportingType.none}) {
  log.info(
      "platform:didPushRouteInformation: ${routeInformation.location} ${routeInformation.runtimeType}");
  return super.routerReportsNewRouteInformation(routeInformation, type: type);
}