FeatureGeoLocator class
- Inheritance
-
- Object
- FeatureGeoLocatorRepository
- FeatureGeoLocator
Constructors
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
-
checkPermission(
) → Future< LocationPermission> -
Returns a Future indicating if the user allows the App to access
the device's location.
override
-
distanceBetween(
{required double startLatitude, required double startLongitude, required double endLatitude, required double endLongitude}) → double -
Calculates the distance between the supplied coordinates in meters.
override
-
getCurrentPosition(
{LocationSettings? locationSettings}) → Future< Position> -
Returns the current position.
override
-
getLastKnownLocation(
{bool useNewerFusedLocationProvider = true}) → Future< Position?> -
Returns the last known position stored on the users device.
override
-
isFakeLocation(
) → Future< bool> -
Calculates the distance between the supplied coordinates in meters.
override
-
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
-
openAppSetting(
) → Future< void> -
Opens the App settings page.
override
-
openLocationSettings(
) → Future< void> -
Opens the location settings page.
override
-
requestPermission(
) → Future< LocationPermission> -
Request permission to access the location of the device.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited