copy method

SortedList<E> copy()

Returns a copy of the object

Implementation

SortedList<E> copy() {
  return SortedList.fromPresortedList(
    items: List.from(_items),
    compare: _compare,
  );
}