title: how to do looping (for) in dart flutter when calculate distance of 10 locations?
body: <p>I am trying to get distance of 10 locations... but I don't get idea how to do it using looping <code>for</code>.. here is the code</p>
  
  <pre><code>final double distance1 = await Geolocator().distanceBetween(
          lat1, long1, endLat, endLong);
  ....
  final double distance10 = await Geolocator().distanceBetween(
          lat10, long10, endLat, endLong);
  </code></pre>
  
  <p>is there a way to do looping for 10 distance and save the value of 10 distances inside array</p>