HeartCollectionQueue<E> extension

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

on

Methods

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

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

Available on Queue<E>, provided by the HeartCollectionQueue extension

.mapIndexed equivalent