How 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.

Sizin İçin Seçtik  Which of the following modifier on members of a class that is not accessible to another class in different package but is accessible to any subclass in the same package?

Leave a Reply

Your email address will not be published. Required fields are marked *