toSortedList method

SortedList<E> toSortedList({
  1. Comparator<E>? comparator,
  2. bool growable = true,
})

Converts this Iterable to a SortedList.

Implementation

SortedList<E> toSortedList(
        {Comparator<E>? comparator, bool growable = true}) =>
    SortedList.of(this, comparator: comparator, growable: growable);