fetchDoc function
dynamic
fetchDoc(
- dynamic table,
- 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();
}