route method

void route(
  1. String link
)

Navigate to a page with the specified link. link is a string set in StandardPageFactory under links.

Implementation

void route(String link) async {
  final tRouteInformation = await parser
      ?.parseRouteInformation(RouteInformation(uri: Uri.parse(link)));

  if (tRouteInformation != null) {
    delegate?.routeWithConfiguration(tRouteInformation);
  }
}