setRecord abstract method
Set a data to the given documentPath.
If the document does not exit at the given documentPath, data will be
created. Otherwise, the document will be replaces by the given
recordMap.
documentPathThe path to the document. e.g - "restaurants/{restaurantId}"recordMapThe data that will set to the document.mergeUsing when we went to merge (merge = true) or overwrite (merge = false) the data. by default the data is merged into the existing document.
Implementation
Future<bool> setRecord({
required String documentPath,
required Map<String, dynamic> recordMap,
bool merge = true,
});