LocationDetectorService class

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

calculateDistance(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
Calculate distance between two locations
checkPermission() Future<LocationPermission>
Check current permission status
getAddressFromCoordinates(double latitude, double longitude, {String? localeIdentifier}) Future<LocationModel?>
Get address details from coordinates using reverse geocoding
getCoordinatesFromAddress(String address) Future<LocationModel?>
Get coordinates from address (forward geocoding)
getCurrentLocation({LocationAccuracy accuracy = LocationAccuracy.high, Duration? timeLimit}) Future<LocationModel?>
Get current location with coordinates only
getCurrentLocationWithAddress({LocationAccuracy accuracy = LocationAccuracy.high, Duration? timeLimit, String? localeIdentifier}) Future<LocationModel?>
Get current location with full address details using reverse geocoding
getPositionStream({LocationAccuracy accuracy = LocationAccuracy.high, int distanceFilter = 10, Duration? intervalDuration}) Stream<Position>
Get location stream for real-time updates
isLocationServiceEnabled() Future<bool>
Check if location services are enabled
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Open app settings
openLocationSettings() Future<bool>
Open location settings
requestPermission() Future<LocationPermission>
Request location permission
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance LocationDetectorService
no setter