location property

  1. @override
Location location
getter/setter pairoverride-getter

The current location of this window.

Location currentLocation = window.location;
print(currentLocation.href); // 'http://www.example.com:80/'

Implementation

@override
late Location location = Location.internal(href: _initialHref);