distanceMetersTo method

Future<double> distanceMetersTo(
  1. NUILatLng destination
)

Implementation

Future<double> distanceMetersTo(NUILatLng destination) async{
  final currentLocation = await getLastKnownLatLng();
  return distanceMeters(startLat: currentLocation.latitude, startLng: currentLocation.longitude, endLat: destination.latitude, endLng: destination.longitude);
}