update method

  1. @override
Future<void> update({
  1. required DocumentId docId,
  2. required T value,
})
override

Updates data on the document. Data will be merged with any existing document data.

If no document exists yet, the update will fail silently.

Implementation

@override
Future<void> update({required DocumentId docId, required T value}) async {
  await _addToBatch((batch) {
    batch.update(collection.ref.doc(docId.docId), value.toJson());
  });
}