functions/firestore_post
library
Functions
-
firestorePost(CollectionReference<Map<String, dynamic>> collectionReference, String doc, Map<String, dynamic> data, {bool merge = true})
→ Future<bool>
-
This is a simple helper function for firestore posting requests.
It returns a bool value if the request was successful or not.
It takes the collection reference, the document name and the data to be saved.
The merge parameter is optional and defaults to true.
If merge is true, the data will be merged with the existing data.