NUIGeoLocator class

Properties

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

Methods

bearing({required double startLat, required double startLng, required double endLat, required double endLng}) double
checkLocationServiceEnabled({dynamic launchSetting = false}) Future<bool>
checkLocationSetting() Future<void>
checkPermission() Future<LocationPermission>
distanceMeters({required double startLat, required double startLng, required double endLat, required double endLng}) double
distanceMetersTo(NUILatLng destination) Future<double>
getAreaCodeFromLocation(double latitude, double longitude) Future<AreaCode?>
getCurrentLocation({LocationAccuracy? accuracy, Duration? timeOut}) Future<Position>
getCurrentLocationInfo({LocationAccuracy? accuracy, Duration? timeOut}) Future<AreaCode?>
getLastKnownAreaCode() Future<AreaCode?>
getLastKnownLatLng() Future<NUILatLng>
getLastKnownLocation() Future<Position?>
getPlacemarkFromLocation(double latitude, double longitude) Future<List<Placemark>?>
launchMapWithCoordinates(BuildContext context, {required String title, required NUILatLng latLng}) → void
listenToLocationUpdate({required LocationUpdateCallback callback, LocationAccuracy accuracy = LocationAccuracy.best, Duration intervalToUpdate = const Duration(seconds: 3), Duration? timeOut}) StreamSubscription<Position>
locationServiceEnabled() Future<bool>
locationsFromAddress(String address) Future<List<Location>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placemarksFromLocation({required double lat, required double lng}) Future<List<Placemark>>
requestPermission() Future<LocationPermission>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

get() NUIGeoLocator

Constants

MODULE → const String