update method
Updates fields in the document referred to by this DocumentReference. The update will fail if applied to a document that does not exist.
Nested fields can be updated by providing dot-separated field path strings
or by providing FieldPath
objects.
The data
param is the Map containing all of the fields and values
to update.
The fieldsAndValues
param is the List alternating between fields
(as String or FieldPath
objects) and values.
Returns non-null Future that resolves once the data has been successfully written to the backend (Note that it won't resolve while you're offline).
Implementation
Future<void> update(
{Map<String, dynamic>? data,
List< /*String|FieldPath|dynamic*/ dynamic>? fieldsAndValues}) =>
handleThenable(_wrapUpdateFunctionCall(jsObject, data, fieldsAndValues));