FusedLocationProviderClient class

Constructors

FusedLocationProviderClient()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onLocationData Stream<Location>?
Listens for location updates that come from the requestLocationUpdates method.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkLocationSettings(LocationSettingsRequest locationSettingsRequest) Future<LocationSettingsStates>
Checks location settings of the device.
getLastLocation() Future<Location>
Obtains the available location of the last request.
getLastLocationWithAddress(LocationRequest locationRequest) Future<HWLocation>
Obtains the available location of the last request, including the detailed address information.
getLocationAvailability() Future<LocationAvailability>
Checks whether the location data is available.
getNavigationContextState(NavigationRequest navigationRequest) Future<NavigationResult>
Obtains the status information.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLocationUpdates(int requestCode) Future<void>
Removes location updates based on the specified request code.
removeLocationUpdatesCb(int callbackId) Future<void>
Removes location updates based on the specified callback ID.
requestLocationUpdates(LocationRequest locationRequest) Future<int?>
Continuously requests location updates.
requestLocationUpdatesCb(LocationRequest locationRequest, LocationCallback locationCallback) Future<int>
Requests location updates using the callback.
requestLocationUpdatesExCb(LocationRequest locationRequest, LocationCallback locationCallback) Future<int>
Continuously requests location updates.
setMockLocation(Location location) Future<void>
Sets a specific mock location.
setMockMode(bool mockMode) Future<void>
Sets whether to use the location mock mode.
toString() String
A string representation of this object.
inherited

Operators

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