setDocument method

Future<void> setDocument(
  1. String collectionPath,
  2. String docId,
  3. Map<String, dynamic> data
)

Implementation

Future<void> setDocument(String collectionPath, String docId, Map<String, dynamic> data) async {
  await _db.collection(collectionPath).doc(docId).set(data, SetOptions(merge: true));
}