I want to get the documents of a few users (in my collection: users). I stored all the ID's that I want in a list.
List shortIDList = [12345, 23425, 32453]
I'm trying this function to get the users from the shortIDList.
 shortIDList.forEach((element) => getFirestoreUsers(st: element));
 getFirestoreUsers({String st}) async {
    await Firestore.instance
        .collection('users')
        .document('$st')
        .get()
        .then((DocumentSnapshot ds) {
      print(ds.data);
   // I would like to add all these documents to a futurebuilder
    });
  }
I would like to add all the documents (to a new list?) That I can use in a futurebuilder, to display all the user information example: profile picture, name etc...
Is that possible?
Thanks!
 
     
    