union method
Distinct union of this and other (all elements, no duplicates).
Returns a new list containing each distinct element from both iterables. Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
List<T> union(Iterable<T> other) => <T>{...this, ...other}.toList();