Future<DocumentReference> addDocument( {String? id, required Map<String, dynamic> data}) async { final docRef = ref.doc(id); await docRef.set(data); return docRef; }