DeviceGeolocationWeb class

Web implementation of DeviceGeolocationPlatform backed by navigator.geolocation and the Permissions API when available.

Inheritance

Constructors

DeviceGeolocationWeb()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settingsOpenedStream Stream<bool>
Stream that emits true when a system settings panel is opened by this plugin and false when the app returns to the foreground.
no setteroverride

Methods

bearingBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
Initial bearing (forward azimuth) from start to end coordinates, expressed in degrees.
inherited
checkPermission() Future<DeviceLocationPermission>
override
distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude, {GeospatialAlgorithm algorithm = GeospatialAlgorithm.vincenty}) double
Great-circle distance between two coordinates in meters.
inherited
getCurrentPosition({DeviceLocationSettings? deviceLocationSettings}) Future<DevicePosition>
override
getLocationAccuracy() Future<DeviceLocationAccuracyStatus>
override
getPermissionStream({Duration pollingInterval = const Duration(seconds: 1)}) Stream<DeviceLocationPermission>
override
getPositionStream({DeviceLocationSettings? deviceLocationSettings}) Stream<DevicePosition>
override
getServiceStatusStream() Stream<DeviceLocationServiceStatus>
override
isLocationServiceEnabled() Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings({DeviceGeolocationSettingsCallback? callback}) Future<bool>
override
openLocationSettings({DeviceGeolocationSettingsCallback? callback}) Future<bool>
override
requestPermission({bool requestBackground = false}) Future<DeviceLocationPermission>
override
requestTemporaryFullAccuracy({required String purposeKey}) Future<DeviceLocationAccuracyStatus>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void