url property

Uri url
final

The URL path from the current handler to the requested resource, relative to handlerPath, plus any query parameters.

This should be used by handlers for determining which resource to serve, in preference to requestedUri. This allows handlers to do the right thing when they're mounted anywhere in the application. Routers should be sure to update this when dispatching to a nested handler, using the path parameter to change.

url's path is always relative. It may be empty, if requestedUri ends at this handler. url will always have the same query parameters as requestedUri.

handlerPath and url's path combine to create requestedUri's path.

Implementation

final Uri url;