oneWithID method

dynamic oneWithID(
  1. Type type,
  2. String documentID
)

Deletes a document from Firestore by its type and document ID.

Implementation

oneWithID(Type type, String documentID) async {
  DocumentReference ref = FS.instance.collection(type.toString()).doc(documentID);
  return _batch.delete(ref);
}