route method

String route(
  1. String routeName,
  2. RouteEvent routeEvent, {
  3. Map<String, dynamic>? arguments,
})

获取路由 routeName 路由名称 routeEvent 用于区分页面路由、事件路由 arguments 路由参数

Implementation

String route(String routeName, RouteEvent routeEvent, {Map<String, dynamic>? arguments}) {
  var path = '${_routeScheme}://${_routeHost}/${routeEvent.name}';
  path = path.appendPath(routeName);
  path = path.appendPath(_queryParameters(arguments));
  return path;
}