navigateWithQuery method

void navigateWithQuery(
  1. RouteInfo routeInfo,
  2. Map<String, String> query
)

Implementation

void navigateWithQuery(RouteInfo routeInfo, Map<String, String> query) {
  if (query.isEmpty) {
    _requestRoute(RoutePath.routeInfo(routeInfo, parameter = ''));
    return;
  }

  final uri = Uri(queryParameters: query);
  _requestRoute(RoutePath.routeInfo(routeInfo, parameter = '?' + uri.query));
}