I have the following courses array in Firestore:
How can I print all the items in Courses array?
I have the following code which currently just fetches the data from Firestore:
printAllValuesFromArray() {
var courses = FirebaseFirestore.instance
.collection('CurrentCourses')
.doc(user.uid)
.get()
.then((value) {
return value['courses'];
});
}
