How to use nested array in Firestore to populate ListView and save to database

I have a Firestore database with the following data structure

  • device (document)

    • config (map)

      • zones (array)

        • sprayoccurrences (array)

I would like to be able to populate a ListView with the sprayoccurrences, and I will need to be able to add new and edit existing sprayoccurrences. I am able to list zones, but I can't find a way to list sprayoccurrences.

Any idea how I can populate my ListView with sprayoccurrences?

2
4 replies