TreeSet<V> constructor

TreeSet<V>({
  1. Comparator<V> comparator = _defaultCompare,
})

Create a new TreeSet with an ordering defined by comparator or the default (a, b) => a.compareTo(b).

Implementation

factory TreeSet({Comparator<V> comparator = _defaultCompare}) {
  return AvlTreeSet(comparator: comparator);
}