UnionSetController<E> constructor

UnionSetController<E>({bool disjoint: false })

Creates a set of sets that provides a view of the union of those sets.

If disjoint is true, this assumes that all component sets are disjoint—that is, that they contain no elements in common. This makes many operations including length more efficient.

Implementation

UnionSetController({bool disjoint: false}) {
  _set = new UnionSet<E>(_sets, disjoint: disjoint);
}