Flutter & Firebase : How can I put the documentID into the document field the moment I just create the document?
Normally, if we create the document without specifying the documentID, firebase will generate an ID for us, right?
In my case, I want firebase to generate the ID for me and then put that id into one of the document field. How do I do that?
await feedbackCollection.document().setData({
'comment' : comment,
'feedback_id' : ????,
});