SortedList<E> class

Implemented types
Available extensions

Constructors

SortedList.new(Iterable<E> _source, Comparator<E> _comparator)
SortedList.withSelector(Iterable<E> _source, Comparable selector(E element), int order, Comparator<E>? parentComparator)

Properties

cached Iterable<E>

Available on Iterable<E>, provided by the IterableCached extension

Returns a new lazy Iterable that caches the computation of the current Iterable.
no setter
canExecute bool

Available on Iterable<FileStatPermission>, provided by the MyUtilityExtensionFileStatPermissionCanExecute extension

no setter
canRead bool

Available on Iterable<FileStatPermission>, provided by the MyUtilityExtensionFileStatPermissionCanRead extension

no setter
canWrite bool

Available on Iterable<FileStatPermission>, provided by the MyUtilityExtensionFileStatPermissionCanWrite extension

no setter
delegate List<E>
no setter
first ↔ E
The first element.
getter/setter pairinherited
firstIndex int

Available on List<E>, provided by the ListExtension extension

Index of the first element or -1 if the collection is empty.
no setter
firstOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The first element of this iterator, or null if the iterable is empty.
no setter
firstOrNull → E?

Available on Iterable<E>, provided by the IterableFirstOrNull extension

First element or null if the collection is empty.
no setter
fourth → E

Available on Iterable<E>, provided by the IterableFourthItem extension

Fourth element.
no setter
hashCode int
The hash code for this object.
no setterinherited
indexed Iterable<(int, T)>

Available on Iterable<T>, provided by the IterableExtensions extension

Pairs of elements of the indices and elements of this iterable.
no setter
indices Iterable<int>

Available on List<E>, provided by the ListIndicesExtension extension

no setter
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<E>
A new Iterator that allows iterating the elements of this Iterable.
no setterinherited
last ↔ E
The last element.
getter/setter pairinherited
lastIndex int

Available on List<E>, provided by the ListLastIndexExtension extension

Index of the last element or -1 if the collection is empty.
no setter
lastOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The last element of this iterable, or null if the iterable is empty.
no setter
lastOrNull → E?

Available on Iterable<E>, provided by the IterableLastOrNull extension

Last element or null if the collection is empty.
no setter
length int
The number of elements in this Iterable.
getter/setter pairinherited
nonNulls Iterable<T>

Available on Iterable<T?>, provided by the NullableIterableExtensions extension

The non-null elements of this iterable.
no setter
reversed Iterable<E>
An Iterable of the objects in this list in reverse order.
no setterinherited
reversed Iterable<E>

Available on Iterable<E>, provided by the IterableReversed extension

Returns an Iterable of the objects in this list in reverse order.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → E

Available on Iterable<E>, provided by the IterableSecondItem extension

Second element.
no setter
single → E
Checks that this iterable has only one element, and returns that element.
no setterinherited
singleOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The single element of this iterator, or null.
no setter
third → E

Available on Iterable<E>, provided by the IterableThirdItem extension

Third element.
no setter
toJS JSArray<T>

Available on List<T>, provided by the ListToJSArray extension

Converts this List to a JSArray by either casting, unwrapping, or cloning the List.
no setter
toJSProxyOrRef JSArray<T>

Available on List<T>, provided by the ListToJSArray extension

Converts this List to a JSArray by either casting, unwrapping, or proxying the List.
no setter
wait Future<List<T>>

Available on Iterable<Future<T>>, provided by the FutureIterable extension

Waits for futures in parallel.
no setter

Methods

add(E value) → void
Adds value to the end of this list, extending the length by one.
inherited
addAll(Iterable<E> iterable) → void
Appends all objects of iterable to the end of this list.
inherited
all(bool predicate(E element)) bool

Available on Iterable<E>, provided by the IterableAll extension

Returns true if all elements match the given predicate or if the collection is empty.
any(bool test(E element)) bool
Checks whether any element of this iterable satisfies test.
inherited
append(Iterable<E> elements) Iterable<E>

Available on Iterable<E>, provided by the IterableAppend extension

Returns a new lazy Iterable containing all elements of the given elements collection and then all elements of this collection.
appendElement(E element) Iterable<E>

Available on Iterable<E>, provided by the IterableAppendElement extension

Returns a new lazy Iterable containing the given element and then all elements of this collection.
asMap() Map<int, E>
An unmodifiable Map view of this list.
inherited
asNameMap() Map<String, T>

Available on Iterable<T>, provided by the EnumByName extension

Creates a map from the names of enum values to the values.
associate<K, V>(MapEntry<K, V> transform(E element)) Map<K, V>

Available on Iterable<E>, provided by the IterableAssociate extension

Returns a Map containing key-value pairs provided by transform function applied to elements of this collection.
associateBy<K>(K keySelector(E element)) Map<K, E>

Available on Iterable<E>, provided by the IterableAssociateBy extension

Returns a Map containing the elements from the collection indexed by the key returned from keySelector function applied to each element.
associateWith<V>(V valueSelector(E element)) Map<E, V>

Available on Iterable<E>, provided by the IterableAssociateWith extension

Returns a Map containing the values returned from valueSelector function applied to each element indexed by the elements from the collection.
asStream() Stream<E>

Available on Iterable<E>, provided by the IterableAsStream extension

Returns a new Stream with all elements of this collection.
asStreamAwaited() Stream<E>

Available on Iterable<Future<E>>, provided by the IterableFutureX extension

Create a stream from a group of futures.
average() double

Available on Iterable<T>, provided by the IterableNumAverageExtension extension

Returns the average of all elements in the collection.
averageBy(num selector(E element)) double

Available on Iterable<E>, provided by the IterableAverageBy extension

Returns the average of values returned by selector for all elements in the collection.
binarySearch(E value, {int compare(E a, E b)?}) int

Available on List<E>, provided by the ListBinarySearchExtension extension

Returns a position of the value in this list, if it is there.
byName(String name) → T

Available on Iterable<T>, provided by the EnumByName extension

Finds the enum value in this list with name name.
cast<T>() List<T>
A view of this iterable as an iterable of R instances.
chunked(int size) Iterable<List<E>>

Available on Iterable<E>, provided by the IterableChunked extension

Splits this collection into a new lazy Iterable of lists each not exceeding the given size.
chunkWhile(bool predicate(E, E)) Iterable<List<E>>

Available on Iterable<E>, provided by the IterableChunkWhile extension

Splits this collection into a lazy Iterable of chunks, where chunks are created as long as predicate is true for a pair of entries.
clear() → void
Removes all objects from this list; the length of the list becomes zero.
inherited
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
containsAll(Iterable<E> collection) bool

Available on Iterable<E>, provided by the IterableContainsAll extension

Checks if all elements in the specified collection are contained in this collection.
containsAny(Iterable<E> collection) bool

Available on Iterable<E>, provided by the IterableContainsAny extension

Checks if any elements in the specified collection are contained in this collection.
contentEquals(Iterable<E> other, [bool checkEqual(E a, E b)?]) bool

Available on Iterable<E>, provided by the IterableContentEquals extension

Returns true if this collection is structurally equal to the other collection.
count([bool predicate(E element)?]) int

Available on Iterable<E>, provided by the IterableCount extension

Returns the number of elements matching the given predicate.
cycle([int? n]) Iterable<E>

Available on Iterable<E>, provided by the IterableCycle extension

Returns a new lazy Iterable which iterates over this collection n times.
deepCopy({bool growable = true}) List<T>

Available on Iterable<T>, provided by the MyUtilityExtensionDeepCopyIterable extension

Returns a new List that contains a deep copy of every element from this.
deepCopy({bool growable = true}) List<Map<Map<K1, V1>, Map<K2, V2>>>

Available on Iterable<Map<Map<K1, V1>, Map<K2, V2>>>, provided by the MyUtilityExtensionDeepCopyIterableOfMapWithKeyAndValueMap extension

Returns a new List that contains a deep copy of every element from this.
deepCopy({bool growable = true}) List<Map<K, V>>

Available on Iterable<Map<K, V>>, provided by the MyUtilityExtensionDeepCopyIterableOfMap extension

Returns a new List that contains a deep copy of every element from this.
deepCopy({bool growable = true}) List<Map<K, Map<K1, V1>>>

Available on Iterable<Map<K, Map<K1, V1>>>, provided by the MyUtilityExtensionDeepCopyIterableOfMapWithValueMap extension

Returns a new List that contains a deep copy of every element from this.
deepCopy({bool growable = true}) List<Map<Map<K1, V1>, V>>

Available on Iterable<Map<Map<K1, V1>, V>>, provided by the MyUtilityExtensionDeepCopyIterableOfMapWithKeyMap extension

Returns a new List that contains a deep copy of every element from this.
distinct() Iterable<E>

Available on Iterable<E>, provided by the IterableDistinct extension

Returns a new lazy Iterable containing only distinct elements from the collection.
distinctBy<R>(R selector(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableDistinctBy extension

Returns a new lazy Iterable containing only elements from the collection having distinct keys returned by the given selector function.
drop(int n) List<E>

Available on List<E>, provided by the ListDropExtension extension

Returns a new list containing all elements except first n elements.
dropLast(int n) List<E>

Available on List<E>, provided by the ListDropLastExtension extension

Returns a new list containing all elements except last n elements.
dropLastWhile(bool predicate(E element)) List<E>

Available on List<E>, provided by the ListDropLastWhileExtension extension

Returns a new list containing all elements except last elements that satisfy the given predicate.
dropWhile(bool predicate(E element)) List<E>

Available on List<E>, provided by the ListDropWhileExtension extension

Returns a new list containing all elements except last elements that satisfy the given predicate.
elementAt(int index) → E
Returns the indexth element.
inherited
elementAtOrDefault(int index, E defaultValue) → E

Available on Iterable<E>, provided by the IterableElementAtOrDefault extension

Returns an element at the given index or defaultValue if the index is out of bounds of this collection.
elementAtOrElse(int index, E defaultValue(int index)) → E

Available on Iterable<E>, provided by the IterableElementAtOrElse extension

Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this collection.
elementAtOrNull(int index) → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The element at position index of this iterable, or null.
elementAtOrNull(int index) → E?

Available on List<E>, provided by the ListElementAtOrNull extension

Returns an element at the given index or null if the index is out of bounds of this list.
elementAtOrNull(int index) → E?

Available on Iterable<E>, provided by the IterableElementAtOrNull extension

Returns an element at the given index or null if the index is out of bounds of this collection.
every(bool test(E element)) bool
Checks whether every element of this iterable satisfies test.
inherited
except(Iterable<E> elements) Iterable<E>

Available on Iterable<E>, provided by the IterableExcept extension

Returns a new lazy Iterable containing all elements of this collection except the elements contained in the given elements collection.
exceptElement(E element) Iterable<E>

Available on Iterable<E>, provided by the IterableExceptElement extension

Returns a new lazy Iterable containing all elements of this collection except the given element.
expand<T>(Iterable<T> f(E element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
fillRange(int start, int end, [E? fillValue]) → void
Overwrites a range of elements with fillValue.
inherited
filter(bool predicate(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableFilter extension

Returns all elements matching the given predicate.
filterIndexed(bool predicate(E element, int index)) Iterable<E>

Available on Iterable<E>, provided by the IterableFilterIndexed extension

Returns all elements that satisfy the given predicate.
filterIndexedTo(List<E> destination, bool predicate(E element, int index)) → void

Available on Iterable<E>, provided by the IterableFilterIndexedTo extension

Appends all elements matching the given predicate to the given destination.
filterNot(bool predicate(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableFilterNot extension

Returns all elements not matching the given predicate.
filterNotIndexed(bool predicate(E element, int index)) Iterable<E>

Available on Iterable<E>, provided by the IterableFilterNotIndexed extension

Returns all elements not matching the given predicate.
filterNotNull() Iterable<E>

Available on Iterable<E?>, provided by the IterableFilterNotNull extension

Returns a new lazy Iterable with all elements which are not null.
filterNotTo(List<E> destination, bool predicate(E element)) → void

Available on Iterable<E>, provided by the IterableFilterNotTo extension

Appends all elements not matching the given predicate to the given destination.
filterNotToIndexed(List<E> destination, bool predicate(E element, int index)) → void

Available on Iterable<E>, provided by the IterableFilterNotToIndexed extension

Appends all elements not matching the given predicate to the given destination.
filterTo(List<E> destination, bool predicate(E element)) → void

Available on Iterable<E>, provided by the IterableFilterTo extension

Appends all elements matching the given predicate to the given destination.
firstOrDefault(E defaultValue) → E

Available on Iterable<E>, provided by the IterableFirstOrDefault extension

First element or defaultValue if the collection is empty.
firstOrNullWhere(bool predicate(E element)) → E?

Available on Iterable<E>, provided by the IterableFirstOrNullWhere extension

Returns the first element matching the given predicate, or null if no such element was found.
firstWhere(bool test(E element), {E orElse()?}) → E
The first element that satisfies the given predicate test.
inherited
firstWhile(bool predicate(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableFirstWhile extension

/ Returns the first elements satisfying the given predicate.
flatMap<R>(Iterable<R> transform(E element)) Iterable<R>

Available on Iterable<E>, provided by the IterableFlatMap extension

Returns a new lazy Iterable of all elements yielded from results of transform function being invoked on each element of this collection.
flatten() List<E>

Available on List<List<E>>, provided by the ListFlattenExtension extension

Returns a new List of all elements from all lists in this List.
flatten() Iterable<E>

Available on Iterable<Iterable<E>>, provided by the IterableIterableX extension

Returns a new lazy Iterable of all elements from all collections in this collection.
fold<T>(T initialValue, T combine(T previousValue, E element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<E> other) Iterable<E>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void f(E element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
forEachIndexed(void action(E element, int index)) → void

Available on Iterable<E>, provided by the IterableForEachIndexed extension

Performs the given action on each element, providing sequential index with the element.
getRandom([Random? random]) → E

Available on Iterable<E>, provided by the MyUtilityExtensionIterableGetRandom extension

getRange(int start, int end) Iterable<E>
Creates an Iterable that iterates over a range of elements.
inherited
groupBy<K>(K keySelector(E element)) Map<K, List<E>>

Available on Iterable<E>, provided by the IterableGroupBy extension

Groups elements of the original collection by the key returned by the given keySelector function applied to each element and returns a map.
indexOf(E element, [int start = 0]) int
The first index of element in this list.
inherited
indexWhere(bool test(E element), [int start = 0]) int
The first index in the list that satisfies the provided test.
inherited
insert(int index, E element) → void
Inserts element at position index in this list.
inherited
insertAll(int index, Iterable<E> iterable) → void
Inserts all objects of iterable at position index in this list.
inherited
insertionSort({Comparator<E>? comparator, int start = 0, int? end}) → void

Available on List<E>, provided by the ListInsertionSortExtension extension

Sort this list between start (inclusive) and end (exclusive) using insertion sort.
intersect(Iterable<E> other) Iterable<E>

Available on Iterable<E>, provided by the IterableIntersect extension

Returns a new lazy Iterable containing all elements that are contained by both this collection and the other collection.
join([String separator = '']) String
Converts each element to a String and concatenates the strings.
inherited
joinToString({String separator = ', ', String transform(E element)?, String prefix = '', String postfix = '', int? limit, String truncated = '...'}) String

Available on Iterable<E>, provided by the IterableJoinToString extension

Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
lastIndexOf(E element, [int? start]) int
The last index of element in this list.
inherited
lastIndexWhere(bool test(E element), [int? start]) int
The last index in the list that satisfies the provided test.
inherited
lastOrElse(E defaultValue) → E

Available on Iterable<E>, provided by the IterableLastOrElse extension

Last element or defaultValue if the collection is empty.
lastOrNullWhere(bool predicate(E element)) → E?

Available on Iterable<E>, provided by the IterableLastOrNullWhere extension

Returns the last element matching the given predicate, or null if no such element was found.
lastWhere(bool test(E element), {E orElse()?}) → E
The last element that satisfies the given predicate test.
inherited
lastWhile(bool predicate(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableLastWhile extension

Returns the last elements satisfying the given predicate.
lowerBound(E value, {int compare(E a, E b)?}) int

Available on List<E>, provided by the ListLowerBoundExtension extension

Returns the first position in this list that does not compare less than value.
map<T>(T f(E e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
mapIndexed<R>(R transform(int index, E)) Iterable<R>

Available on Iterable<E>, provided by the IterableMapIndexed extension

Returns a new lazy Iterable containing the results of applying the given transform function to each element and its index in the original collection.
mapIndexedNotNull<R>(R? transform(int index, E)) Iterable<R>

Available on Iterable<E>, provided by the IterableMapIndexedNotNull extension

Returns a new lazy Iterable containing only the non-null results of applying the given transform function to each element and its index in the original collection.
mapNotNull<R>(R? transform(E element)) Iterable<R>

Available on Iterable<E>, provided by the IterableMapNotNull extension

Returns a new lazy Iterable containing only the non-null results of applying the given transform function to each element in the original collection.
max() → E?

Available on Iterable<E>, provided by the IterableMax extension

Returns the largest element or null if there are no elements.
maxBy(Comparable selector(E element)) → E?

Available on Iterable<E>, provided by the IterableMaxBy extension

Returns the first element yielding the largest value of the given selector or null if there are no elements.
maxWith(Comparator<E> comparator) → E?

Available on Iterable<E>, provided by the IterableMaxWith extension

Returns the first element having the largest value according to the provided comparator or null if there are no elements.
median() double

Available on Iterable<T>, provided by the IterableNumMedianExtension extension

Returns the median of the elements in this collection.
mergeSort({int start = 0, int? end, Comparator<E>? comparator}) → void

Available on List<E>, provided by the ListMergeSortExtension extension

Sorts this list between start (inclusive) and end (exclusive) using the merge sort algorithm.
min() → E?

Available on Iterable<E>, provided by the InterableMin extension

Returns the smallest element or null if there are no elements.
minBy(Comparable selector(E element)) → E?

Available on Iterable<E>, provided by the IterableMinBy extension

Returns the first element yielding the smallest value of the given selector or null if there are no elements.
minWith(Comparator<E> comparator) → E?

Available on Iterable<E>, provided by the IterableMinWith extension

Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
none(bool predicate(E element)) bool

Available on Iterable<E>, provided by the IterableNone extension

Returns true if no entries match the given predicate or if the collection is empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEach(void action(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableOnEach extension

Returns a new lazy Iterable which performs the given action on each element.
partition(bool predicate(E element)) List<List<E>>

Available on Iterable<E>, provided by the IterablePartition extension

Splits the collection into two lists according to predicate.
prepend(Iterable<E> elements) Iterable<E>

Available on Iterable<E>, provided by the IterablePrepend extension

Returns a new lazy Iterable containing all elements of this collection and then all elements of the given elements collection.
prependElement(E element) Iterable<E>

Available on Iterable<E>, provided by the IterablePrependElement extension

Returns a new lazy Iterable containing all elements of this collection and then the given element.
reduce(E combine(E value, E element)) → E
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
remove(Object? value) bool
Removes the first occurrence of value from this list.
inherited
removeAt(int index) → E
Removes the object at position index from this list.
inherited
removeLast() → E
Removes and returns the last object in this list.
inherited
removeRange(int start, int end) → void
Removes a range of elements from the list.
inherited
removeWhere(bool test(E element)) → void
Removes all objects from this list that satisfy test.
inherited
replaceRange(int start, int end, Iterable<E> iterable) → void
Replaces a range of elements with the elements of replacements.
inherited
retainWhere(bool test(E element)) → void
Removes all objects from this list that fail to satisfy test.
inherited
setAll(int index, Iterable<E> iterable) → void
Overwrites elements with the objects of iterable.
inherited
setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) → void
Writes some elements of iterable into a range of this list.
inherited
shuffle([Random? random]) → void
Shuffles the elements of this list randomly.
inherited
shuffled([Random? random]) List<E>

Available on Iterable<E>, provided by the IterableShuffled extension

Returns a new, randomly shuffled list.
singleWhere(bool test(E element), {E orElse()?}) → E
The single element that satisfies test.
inherited
skip(int n) Iterable<E>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(E value)) Iterable<E>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
slice(int start, [int end = -1]) List<E>

Available on Iterable<E>, provided by the IterableSlice extension

Returns a new list containing elements at indices between start (inclusive) and end (inclusive).
sort([int compare(E a, E b)?]) → void
Sorts this list according to the order specified by the compare function.
inherited
sorted() List<E>

Available on Iterable<E>, provided by the IterableSorted extension

Returns a new list with all elements sorted according to natural sort order.
sortedBy(Comparable selector(E element)) SortedList<E>

Available on Iterable<E>, provided by the IterableSortedBy extension

Returns a new list with all elements sorted according to natural sort order of the values returned by specified selector function.
sortedByDescending(Comparable selector(E element)) SortedList<E>

Available on Iterable<E>, provided by the IterableSortedByDescending extension

Returns a new list with all elements sorted according to descending natural sort order of the values returned by specified selector function.
sortedDescending() List<E>

Available on Iterable<E>, provided by the IterableSortedDescending extension

Returns a new list with all elements sorted according to descending natural sort order.
sortedWith(Comparator<E> comparator) SortedList<E>

Available on Iterable<E>, provided by the IterableSortedWith extension

Returns a new list with all elements sorted according to specified comparator.
splitWhen(bool predicate(E, E)) Iterable<List<E>>

Available on Iterable<E>, provided by the IterableSplitWhen extension

Splits this collection into a lazy Iterable, where each split will be make if predicate returns true for a pair of entries.
startsWith(Iterable<E> otherIterable) bool

Available on Iterable<E>, provided by the IterableStartsWithExtension extension

Returns if this Iterable starts with the elements of otherIterable.
sublist(int start, [int? end]) List<E>
Returns a new list containing the elements between start and end.
inherited
sum() → T

Available on Iterable<T>, provided by the IterableNumSumExtension extension

Returns the sum of all elements in the collection.
sumBy<T extends num>(T selector(E element)) → T

Available on Iterable<E>, provided by the IterableSumBy extension

Returns the sum of all values produced by selector function applied to each element in the collection.
swap(int indexA, int indexB) → void

Available on List<E>, provided by the ListSwapExtension extension

Swaps the elements in the indices provided.
take(int n) Iterable<E>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeFirst(int n) List<E>

Available on Iterable<E>, provided by the IterableTakeFirst extension

Returns a list containing first n elements.
takeLast(int n) List<E>

Available on Iterable<E>, provided by the IterableTakeLast extension

Returns a list containing last n elements.
takeWhile(bool test(E value)) Iterable<E>
Creates a lazy iterable of the leading elements satisfying test.
inherited
thenBy(Comparable selector(E element)) SortedList<E>
Returns a new list with all elements sorted according to previously defined order and natural sort order of the values returned by specified selector function.
thenByDescending(Comparable selector(E element)) SortedList<E>
Returns a new list with all elements sorted according to previously defined order and descending natural sort order of the values returned by specified selector function.
thenWith(Comparator<E> comparator) SortedList<E>
Returns a new list with all elements sorted according to previously defined order and specified comparator.
toHashSet() HashSet<E>

Available on Iterable<E>, provided by the IterableToHashSet extension

Returns a new HashSet with all distinct elements of this collection.
toIndexKeyMap() Map<int, E>

Available on Iterable<E>, provided by the MyUtilityExtensionIterableToIndexKeyMap extension

toIterable() Iterable<E>

Available on Iterable<E>, provided by the IterableToIterable extension

Returns a new lazy Iterable with all elements of this collection.
toList({bool growable = true}) List<E>
Creates a List containing the elements of this Iterable.
inherited
toMap<K, V>({required K key(int index, E element), required V value(int index, E element)}) Map<K, V>

Available on Iterable<E>, provided by the MyUtilityExtensionIterableToMap extension

toOctalMode() String

Available on Iterable<FileStatPermission>, provided by the MyUtilityExtensionFileStatPermissionToOctalMode extension

toSet() Set<E>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
A string representation of this object.
inherited
toUnmodifiable() List<E>

Available on Iterable<E>, provided by the IterableToUnmodifiable extension

Returns an unmodifiable List view of this collection.
union(Iterable<E> other) Iterable<E>

Available on Iterable<E>, provided by the IterableUnion extension

Returns a new lazy Iterable containing all distinct elements from both collections.
where(bool test(E element)) Iterable<E>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereIndexed(bool predicate(E element, int index)) Iterable<E>

Available on Iterable<E>, provided by the IterableWhereIndexed extension

Returns all elements that satisfy the given predicate.
whereIndexedTo(List<E> destination, bool predicate(E element, int index)) → void

Available on Iterable<E>, provided by the IterableWhereIndexedTo extension

Appends all elements matching the given predicate to the given destination.
whereNot(bool predicate(E element)) Iterable<E>

Available on Iterable<E>, provided by the IterableWhereNot extension

Returns all elements not matching the given predicate.
whereNotIndexed(bool predicate(E element, int index)) Iterable<E>

Available on Iterable<E>, provided by the IterableWhereNotIndexed extension

Returns all elements not matching the given predicate.
whereNotNull() Iterable<E>

Available on Iterable<E?>, provided by the IterableWhereNotNull extension

Returns a new lazy Iterable with all elements which are not null.
whereNotTo(List<E> destination, bool predicate(E element)) → void

Available on Iterable<E>, provided by the IterableWhereNotTo extension

Appends all elements not matching the given predicate to the given destination.
whereNotToIndexed(List<E> destination, bool predicate(E element, int index)) → void

Available on Iterable<E>, provided by the IterableWhereNotToIndexed extension

Appends all elements not matching the given predicate to the given destination.
whereTo(List<E> destination, bool predicate(E element)) → void

Available on Iterable<E>, provided by the IterableWhereTo extension

Appends all elements matching the given predicate to the given destination.
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited
windowed(int size, {int step = 1, bool partialWindows = false}) Iterable<List<E>>

Available on Iterable<E>, provided by the IterableWindowed extension

Returns a new lazy Iterable of windows of the given size sliding along this collection with the given step.
zip<R, V>(Iterable<R> other, V transform(E a, R b)) Iterable<V>

Available on Iterable<E>, provided by the IterableZip extension

Returns a new lazy Iterable of values built from the elements of this collection and the other collection with the same index.

Operators

operator +(List<E> other) List<E>
Returns the concatenation of this list and other.
inherited
operator +(Iterable<E> elements) List<E>

Available on Iterable<E>, provided by the IterablePlus extension

Returns a new list containing all elements of the given elements collection and then all elements of this collection.
operator -(Iterable<E> elements) List<E>

Available on Iterable<E>, provided by the IterableMinus extension

Returns a new list containing all elements of this collection except the elements contained in the given elements collection.
operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → E
The object at the given index in the list.
inherited
operator [](int index) → E

Available on Iterable<E>, provided by the MyUtilityExtensionIterableOperatorSquareBrackets extension

Syntactic sugar for calling elementAt with index.
operator []=(int index, E value) → void
Sets the value at the given index in the list to value.
inherited
operator |(FileStatPermission permission) Set<FileStatPermission>

Available on Iterable<FileStatPermission>, provided by the MyUtilityExtensionFileStatPermissionOperatorPipe extension

Returns a new Set of FileStatPermissions, with every FileStatPermission from this and permission.