Using setData with merge: true in the new FlutterFire API
问题 I am updating my old flutter code with the new FlutterFire API. I use a setData with merge: true in one of my functions to update some document fields that are saved in a Map. I do change setData to set , but I get an error with the new FlutterFire plugin that "merge" isn't defined. I found in the migration docs that setData/set now supports SetOptions to merge data/fields (previously this accepted a Map) The document reference also says: /// If [SetOptions] are provided, the data will be