withParams method
a copy for one request, with its own params. the shared route is never changed, so two requests at the same time can not see each other's params.
Implementation
RouteData withParams(Map<String, dynamic> values) {
return RouteData(
method: method,
path: path,
controllers: controllers,
corsEnabled: corsEnabled,
preMiddleware: preMiddleware,
domain: domain,
body: body,
)
..params = values
.._handler = handler
.._handlerRead = true
.._pattern = _pattern
.._paramNames = _paramNames
.._compiledFor = _compiledFor;
}