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  Ingiltere yüzölçümü ne kadar?

Leave a Reply

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