route method
Navigate to a page with the specified location
.
navigationMode
represents the mode of StandardPageNavigationMode to use during navigation (optional).
Implementation
void route(String location,
[StandardPageNavigationMode? navigationMode]) async {
assert(routerDelegate is StandardRouterDelegate);
final tDelegate = routerDelegate as StandardRouterDelegate;
final tConfiguration = await routeInformationParser
?.parseRouteInformation(RouteInformation(uri: Uri.parse(location)));
if (tConfiguration != null) {
tDelegate.routeWithConfiguration(tConfiguration, navigationMode);
}
}