location property
ContentSetting
get
location
Whether to allow Geolocation. One of
allow
: Allow sites to track your physical location,
block
: Don't allow sites to track your physical location,
ask
: Ask before allowing sites to track your physical location.
Default is ask
.
The primary URL is the URL of the document which requested location data.
The secondary URL is the URL of the top-level frame (which may or may not
differ from the requesting URL).
Implementation
ContentSetting get location =>
ContentSetting.fromJS($js.chrome.contentSettings.location);