delete function

dynamic delete(
  1. dynamic table,
  2. dynamic cond
)

Implementation

delete(table, cond) async {
  CollectionReference<Map<String, dynamic>> tempString;
  tempString = FirebaseFirestore.instance.collection(table);
  tempString.doc(cond).delete().then((value) {
    return cond;
  });
}