“firebase get document id” Code Answer
Read moreHow do I find my firestore collection document ID?
‘id’ can be anything that you want your document IDs to be called. Then the each document object on the returned array will look like this. Then you can easily get the document ID by referencing to the field that you named .
Read moreHow do you get the document ID after adding document in cloud firestore in Dart?
Just add async to the map function . Here, value.id gives the ducumentId. document() when you calling this method without any path, it will create a random id for you. If no [path] is provided, an auto-generated ID is used.
Read more