update method
- DocumentReference<
Object?> docRef, - Map<
String, dynamic> data
Queues an update operation for the given document.
Parameters:
docRef: The document reference.data: The fields to update.
Example:
batch.update(docRef, {'field': 'new value'});
Implementation
void update(DocumentReference docRef, Map<String, dynamic> data) {
__operations.add(
{"method": "update", "docRef": docRef, "data": data, "options": null});
}