location property

  1. @override
HistoryLocation get location
override

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);
}