ListExtension2<T> extension

on

Methods

detachItems([bool predicate(T)?]) Iterable<T>

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

Detach items from a list according to a function and return these items
insertBetween(T element) List<T>

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

Inserts the same element of type T between each element in a List<T>.
moveTo(List<T> other, [bool predicate(T)?]) Iterable<T>

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

Move items from one list into another list, and return these items
removeEqualSiblings({bool before = true, bool after = true, bool compareFunction(T item, T other)?}) Iterable<T>

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

Remove items from the list where the previous or next item are equal to it. Returns the removed items.
removeFirstWhere(bool predicate(T), [int count = 1]) List<T>

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

Remove the first count items of a list thats satisfy the predicate
removeLastWhere(bool predicate(T), [int count = 1]) List<T>

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

Remove the last count items of a list thats satisfy the predicate