I want to get the data where I marked. But since I made the side collection a custom name (as you can see in the picture TbarRow and latpuldown), I cannot fetch the last data I want to reach. Actually, when I write the name of the collection by hand, I reach it, but I don't know how to fetch that name without writing it myself.

I created an array with the name of gunharaketisimleri of the documentation (4 documents Karın bacak itiş çekiş) and tried to fetch the data from there.

and try it like this:
Future<void> fetchData() async {
  try {
    var snapshot = await FirebaseFirestore.instance
        .collection("günler")
        .doc(currentUserID + " GUN")
        .collection("gün")
        .doc("itiş")
        .get();
    snapshot.data()!.forEach((key, value) {
      List<dynamic> favorites1 = [];
      favorites1.add(value);
      print(favorites1);
    });
  } catch (e) {
    // Handle any errors
    print(e.toString());
  }
}

and output:

I/flutter (24013): [[TbarRow, latpuldown]]


I/flutter (24013): [itiş]


I/flutter (24013): [null]


I/flutter (24013):[gdc0mIEbwmdVFqZoLDC0gnIFCAy2]

I tried to reach it this way and got stuck here. Can you suggest another method or how should the continuation be from the final version?

Fetch data Firestore Flutter
To get the array from the document, would be something like:
var array = snapshot.get('gunharaketisimleri') as List;

Then you can loop over the list to get the individual values.
