reportUrlChanged static method

dynamic reportUrlChanged(
  1. BuildContext context,
  2. String url
)

Implementation

static reportUrlChanged(BuildContext context, String url) {
  Router.of(context)
      .routeInformationProvider
      ?.routerReportsNewRouteInformation(
        RouteInformation(
          location: url,
        ),
        type: RouteInformationReportingType.navigate,
      );
}