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']),
CodePudding user response:
Try like this.
Text((snapshot.data as DocumentSnapshot)['members'][0]),