SortedList<E> constructor
SortedList<E> ({
- Comparator<
E> ? comparator, - bool growable = true,
Constructs an empty sorted-list with an optional ordering
.
Implementation
SortedList({Comparator<E>? comparator, bool growable = true})
: _values = List.empty(growable: growable),
_comparator = comparator ?? naturalCompare;