arrayUnion static method
Returns a special value that tells the server to union the given elements with any array value that already exists on the server.
Can be used with set(), create() or update() operations.
Each specified element that doesn't already exist in the array will be added to the end. If the field being modified is not already an array it will be overwritten with an array containing exactly the specified elements.
Implementation
static FieldValue arrayUnion(List elements) =>
_FieldValueArrayUnion(elements);