oneWithID method

Future<Transaction> oneWithID(
  1. Type type,
  2. String documentID
)

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

Implementation

Future<Transaction> oneWithID(Type type, String documentID) async {
  DocumentReference ref = FS.instance.collection(type.toString()).doc(documentID);
  return _tx.delete(ref);
}