delete method

  1. @override
Future<void> delete(
  1. DocumentId docId
)
override

Deletes the current document from the collection.

Implementation

@override
Future<void> delete(DocumentId docId) async {
  await _addToBatch((batch) {
    batch.delete(collection.ref.doc(docId.docId));
  });
}