haversineDistance method

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

haversine distance between GeoFirePoint and (lat, lng)

Implementation

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