coords property
Location coordinates.
See Coords.
BackgroundGeolocation.onLocation((Location location) {
double accuracy = location.coords.accuracy;
double lat = location.coords.latitude;
double lng = location.coords.longitude;
double speed = location.coords.speed;
double heading = location.coords.heading;
double altitude = location.coords.altitude;
print("[onLocation] $location");
});
Implementation
late Coords coords;