How to add new document with custom id using Dart and Flutter?
PS: I can add new document to collection but its id sets randomly, using this code
String uniqueCode = //Your Unique Code DocumentReference reference = Firestore.instance.document("test/" + uniqueCode ); //Setting Data Map yourData; reference.setData(yourData);