Hi, My entire app is failing to build and there are several errors after flutter upgrading to 3.29.0
There is an issue in lib/main.dart
lib/main.dart:74:32: Error: The argument type 'RouteMatchBase' can't be assigned to the parameter type 'RouteMatch?'.
getRoute now returns RouteMatchBase and not RouteMatch
late GoRouter _router;
String getRoute([RouteMatch? routeMatch]) {
final RouteMatch lastMatch =
routeMatch ?? _router.routerDelegate.currentConfiguration.last;
final RouteMatchList matchList = lastMatch is ImperativeRouteMatch
? lastMatch.matches
: _router.routerDelegate.currentConfiguration;
return matchList.uri.toString();
}
List<String> getRouteStack() =>
_router.routerDelegate.currentConfiguration.matches
.map((e) => getRoute(e))
.toList();