-
copyDistinct()
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with duplicates removed while preserving order
-
copyReversed()
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a reversed copy of the iterable
-
copySorted([int compare(T a, T b)?])
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a sorted copy of the iterable
-
copyWithInserted(int index, T item)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with item inserted at index
-
copyWithInsertedAll(int index, Iterable<T> items)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with items inserted at index
-
copyWithItem(T item, [bool prepend = false])
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Adds an item to the beginning or end of the iterable
-
copyWithItems(Iterable<T> items, [bool prepend = false])
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Adds multiple items to the beginning or end of the iterable
-
copyWithMoved(int oldIndex, int newIndex)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with elements moved from oldIndex to newIndex
-
copyWithRemoved(T item)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with the first occurrence of item removed
-
copyWithRemovedAt(int index)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with the element at index removed
-
copyWithRemovedItems(Iterable<T> itemsToRemove)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with all specified items removed
-
copyWithRemovedWhere(bool test(T element))
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a new iterable with elements removed that match the test
-
copyWithReplaced(T oldItem, T newItem)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with the first occurrence of oldItem replaced
-
copyWithReplacedAll(T oldItem, T newItem)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with all occurrences of oldItem replaced
-
copyWithReplacedAt(int index, T newItem)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with the element at index replaced
-
copyWithReplacedWhere(bool test(T item), T newItem)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with the first element matching test replaced
-
copyWithSwapped(int index1, int index2)
→ List<T>
-
Available on List<T>,
provided by the ListX extension
Returns a copy with elements swapped at two indices
-
elementAtOrNull(int index)
→ T?
-
Available on List<T>,
provided by the ListX extension
Returns the element at index, or null if out of bounds
-
equalsEach(List<T> other)
→ bool
-
Available on List<T>,
provided by the ListX extension
Checks if this list equals another element by element
-
splitAt(int index)
→ (List<T>, List<T>)
-
Available on List<T>,
provided by the ListX extension
Splits the list at the specified index