title: Flutter Upload batch of images and get all those URLs to store in Firestore
body: <p>I'm trying to upload n number of photos to Firebase Storage and save those URLs in an array inside Firestore, but I am not able to get the <code>downloadURL()</code> or I do not know where to find it rather. I've checked other answers but those were for single files, I'm trying to upload a batch and store the URLs together instead of uploading on and storing the URL to Firestore and so on and so forth...</p>
  
  <p>CODE:</p>
  
  <pre><code>_uploadImages(String userID, String productID, List&lt;File&gt; images, Function onSuccess(List&lt;String&gt; imageURLs), Function onFailure(String e)) {
      List&lt;String&gt; imageURLs = [];
      int uploadCount = 0;
  
      StorageReference storeRef = FirebaseStorage.instance.ref().child('Products').child(userID).child(productID).child(uploadCount);
      StorageMetadata metaData = StorageMetadata(contentType: 'image/png');
  
      images.forEach((image) {
        storeRef.putFile(image, metaData).onComplete.then((snapshot) {
          STUCK AT THIS POINT SINCE THE SNAPSHOT DOESN'T SHOW THE URL OPTION...
          //imageURLs.add(snapshot. )
          uploadCount++;
  
          if (uploadCount == images.length) {
            onSuccess(imageURLs);
          }
        });
      });
    }
  </code></pre>