Checking out Flutter Web. Seems Firestore Flutter Web integration is not quite there yet. Tried to pass {merge: true} param:
webFirestore
.collection("/users")
.doc(uid)
.set(map, {merge: true});
{merge: true} is underlined with red lines. Tried different formats, none working. Does anyone know how the syntax needs to look like?
This is what the firestore docs are saying:
/// An object to configure the [WriteBatch.set] behavior.
/// Pass [: {merge: true} :] to only replace the values specified in
/// the data argument. Fields omitted will remain untouched.
@anonymous
@JS()
abstract class SetOptions {
/// Set to true to replace only the values from the new data.
/// Fields omitted will remain untouched.
external bool get merge;
external set merge(bool v);
external factory SetOptions({bool merge});
}
cloud_firestore
package does not support Flutter for the web.