update method

  1. @override
void update(
  1. DocumentReference<Object?> document,
  2. Map<String, dynamic> data
)
override

Updates a given document.

If the document does not yet exist, an exception will be thrown.

Implementation

@override
void update(DocumentReference document, Map<String, dynamic> data) {
  if (!_hasUncommittedChanges) {
    _hasUncommittedChanges = true;
  }
  return batch.update(document, data);
}