kmDistance method

double kmDistance({
  1. required double lat,
  2. required double lng,
})

return distance between GeoFirePoint and (lat, lng)

Implementation

double kmDistance({required double lat, required double lng}) {
  return kmDistanceBetween(from: coords, to: Coordinates(lat, lng));
}