Home > Blockchain >  How to get doc snapshot as a list
How to get doc snapshot as a list

Time:06-23

I am trying to get the doc snapshot from fbfirestore as a list

FirebaseFirestore.instance
            .collection("groups")
            .doc(groupId)
            .snapshots(),    

This is the snapshot

Text((snapshot.data as DocumentSnapshot)['members']),

enter image description here

CodePudding user response:

Try like this.

Text((snapshot.data as DocumentSnapshot)['members'][0]),
  • Related