FieldValue.arrayRemove constructor
Removes every value equal to one of elements from the array in the
field.
If the field is not an array (or does not exist), it is set to an empty
array. Values are compared as in FieldValue.arrayUnion. elements
cannot contain other FieldValues or arrays.
await firestore.doc('cities/SF').update(<String, Object?>{
'regions': FieldValue.arrayRemove(<Object?>['norcal']),
});
Implementation
factory FieldValue.arrayRemove(Iterable<Object?> elements) {
return _ArrayRemoveFieldValue._(elements.toList());
}