HeartCollectionList<E> extension

Equivalents for Dart methods, but remain List type when importing 'heart_types.dart'

on

Methods

filter(bool test(E element)) List<E>

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

.where equivalent
filterIndexed(bool test(int index, E element)) List<E>

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

.whereIndexed equivalent
filterNot(bool test(E element)) List<E>

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

.whereNot equivalent
filterNotIndexed(bool test(int index, E element)) List<E>

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

.whereNotIndexed equivalent
filterType<T>() List<T>

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

.whereType equivalent.
flatMap<T>(List<T> toElements(E element)) List<T>

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

.expand equivalent
flatMapIndexed<R>(Iterable<R> expand(int index, E element)) List<R>

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

.expandIndexed equivalent
transform<T>(T toElement(E e)) List<T>

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

.map equivalent
transformIndexed<R>(R convert(int index, E element)) List<R>

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

.mapIndexed equivalent