ListExt<E> extension

on

Properties

firstOrNull → E?

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

no setter
lastOrNull → E?

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

no setter

Methods

expandIndexed<R>(Iterable<R> expand(int index, E element)) Iterable<R>

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

firstWhereIndexedOrNull(bool test(int index, E element)) → E?

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

firstWhereOrNull(bool test(E element)) → E?

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

forEachIndexed(void action(int index, E element)) → void

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

forEachIndexedWhile(bool action(int index, E element)) → void

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

forEachWhile(bool action(E element)) → void

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

lastWhereIndexedOrNull(bool test(int index, E element)) → E?

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

lastWhereOrNull(bool test(E element)) → E?

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

mapIndexed<R>(R convert(int index, E element)) Iterable<R>

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

whereIndexed(bool test(int index, E element)) Iterable<E>

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

whereNotIndexed(bool test(int index, E element)) Iterable<E>

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