fetchDoc function

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

Implementation

fetchDoc(table, cond) async {
  DocumentReference<Map<String, dynamic>> tempString;
  tempString = FirebaseFirestore.instance.collection(table).doc(cond);
  var tempData = await tempString.get();
  return tempData.data();
}