route method
Navigate to a page with the specified link.
link is a string set in StandardPageFactory under links.
pushParentPage indicates whether to push the parent page when navigating to a child page. default is true.
Implementation
void route(String link, [bool pushParentPage = true]) async {
final tRouteInformation = await parser?.parseRouteInformation(
RouteInformation(uri: Uri.parse(link)),
);
if (tRouteInformation != null) {
delegate?.routeWithConfiguration(tRouteInformation, null, pushParentPage);
}
}