updateData method

Future<void> updateData(
  1. String id,
  2. Map<String, dynamic> data
)

Updates the document with id with the provided data to the collection

Implementation

Future<void> updateData(String id, Map<String, dynamic> data) {
  return _db.collection(collection).doc(id).update(data);
}