'Flutter : document firestore api

enter image description here

I There's a document issue here, it looks simple but I'm just learning it. and would like to know its problem



Solution 1:[1]

The property is called docs, not documents. So:

snapshot.docs.forEach(...)

Also see the documentation for the QuerySnapshot class

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Frank van Puffelen