unionWith method
Returns a new set containing the elements in either this set or other.
Non-mutating alias for Set.union that reads well when chaining.
Example:
{1, 2}.unionWith({2, 3}); // {1, 2, 3}
Implementation
Set<E> unionWith(Set<E> other) => union(other);