location property
The current location.
Implementation
@override
HistoryLocation get location {
final web.Location(:hash) = window.location;
final path = hash.startsWith('#') ? hash.substring(1) : hash;
final uri = Uri.parse(ensureLeadingSlash(path));
return HistoryLocation(uri, state?.userData);
}