-1
I am trying to access the data according to the image. I need to bring the information that is inside the document. I’m trying to use the following code:
final QuerySnapshot result1 = await Future.value(Firestore.instance
.collection("pesquisas").getDocuments());
final List<DocumentSnapshot> documents1 = result1.documents;
print(documents1.elementAt(0).documentID.toString());
But only returns the document, in case 02022021. But I need to access the fields, the data that is in this document to fill a list. Follow the image:
I thank and await return!
Edit your question and add the code you used to fetch the data, to understand better. (There you only put a line)
– Matheus Ribeiro
Thanks for the feedback. Updated!
– Jacksonsf