reportUrlChanged static method

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

Forces a url update

Implementation

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