getRoutePageByRoute method

RoutePageInfo getRoutePageByRoute(
  1. String route
)

通过路由获取页面

Implementation

RoutePageInfo getRoutePageByRoute(String route) {
  Map<String, PageFuncType> allRoutes = getRoutes();
  if (allRoutes.containsKey(route)) {
    return RoutePageInfo(route, () => allRoutes[route]!.call());
  } else {
    return createUnknownPage();
  }
}