insert function
dynamic
insert(
- dynamic data,
- dynamic table
Implementation
insert(data, table) async {
CollectionReference<Map<String, dynamic>> tempString;
tempString = FirebaseFirestore.instance.collection(table);
var tempData = await tempString.add(data);
return tempData.id;
}