TreeSet<V> constructor
TreeSet<V> ({
- 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);
}