Skip to content

Upgrading go_router 10 to 11

Breaking10.2.0 → 11.1.4Breaking1New2Fixed4Other2

BreakingUpgrade verdict

1 breaking change.

  • Code that calls or overrides the restore method must be updated to the new signature.
1 item needs code or config changes

go_router publishes an official migration guide for version 11. It covers more than the release notes do.

Migrating to go_router 11 ↗
Breaking1
Updates the function signature of GoRouteInformationProvider.restore.
GoRouteInformationProvider.restore

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • changed: ctor GoRouter({ required List<RouteBase> routes, GoExceptionHandler? onException, GoRouterPageBuilder? errorPageBuilder, GoRouterWidgetBuilder? errorBuilder, GoRouterRedirect? redirect, Listenable? refreshListenable, int redirectLimit = …, bool routerNeglect = …, String? initialLocation, Object? initialExtra, List<NavigatorObserver>? observers, bool debugLogDiagnostics = …, GlobalKey<NavigatorSta… → ctor GoRouter({ required List<RouteBase> routes, GoExceptionHandler? onException, GoRouterPageBuilder? errorPageBuilder, GoRouterWidgetBuilder? errorBuilder, GoRouterRedirect? redirect, Listenable? refreshListenable, int redirectLimit = …, bool routerNeglect = …, String? initialLocation, this.overridePlatformDefaultLocation = …, Object? initialExtra, List<NavigatorObserver>? observers, bool debug…
  • changed: method GoRouteInformationProvider.restore(String location, {required Object encodedMatchList}): void → method GoRouteInformationProvider.restore(String location, {required RouteMatchList matchList}): void
  • added: field GoRouter.overridePlatformDefaultLocation: final bool
  • added: member NavigatingType.restore