pathname property

String pathname

A string containing an initial '/' followed by the path of the URL, not including the query string or fragment.

MDN reference

Implementation

String get pathname => _uri.path;
void pathname=(String value)

Implementation

set pathname(String value) => _uri = _uri.replace(path: value);