Flutter – Retrieve the firestore document id after creation
I need to get and save the document Id from a newly created document. How do I return this id from the Future or how do I add the docRef.id to the client provider? Future<void> saveNewClient(client) async { try {…