GeolocatorPlugin class

The web implementation of GeolocatorPlatform.

This class implements the package:geolocator functionality for the web.

Inheritance

Constructors

GeolocatorPlugin.private(GeolocationManager geolocation, PermissionsManager permissions)
Creates a GeolocatorPlugin

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bearingBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
Calculates the initial bearing between two points
inherited
checkPermission() Future<LocationPermission>
Returns a Future indicating if the user allows the App to access the device's location.
override
distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
Calculates the distance between the supplied coordinates in meters.
inherited
getCurrentPosition({LocationSettings? locationSettings}) Future<Position>
Returns the current position.
override
getLastKnownPosition({bool forceLocationManager = false}) Future<Position>
Returns the last known position stored on the users device.
override
getLocationAccuracy() Future<LocationAccuracyStatus>
Returns a Future containing a LocationAccuracyStatus.
inherited
getPositionStream({LocationSettings? locationSettings}) Stream<Position>
Fires whenever the location changes inside the bounds of the desiredAccuracy.
override
getServiceStatusStream() Stream<ServiceStatus>
Fires when the location Service is manually disabled or enabled.
inherited
isLocationServiceEnabled() Future<bool>
Returns a Future containing a bool value indicating whether location services are enabled on the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Opens the App settings page.
override
openLocationSettings() Future<bool>
Opens the location settings page.
override
requestPermission() Future<LocationPermission>
Request permission to access the location of the device.
override
requestTemporaryFullAccuracy({required String purposeKey}) Future<LocationAccuracyStatus>
Asks the user for Temporary Precise location access (iOS 14 or above).
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Registers this class as the default instance of GeolocatorPlatform.