addDocumentWithCustomId method
Implementation
Future<DocumentReference> addDocumentWithCustomId(String id, Map<String, dynamic> data) async {
var doc = ref!.doc(id);
return await doc.set(data).then((value) {
log('Added: $data');
return doc;
}).catchError((e) {
log(e);
throw e;
});
}