IterableExtensions<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
firstOrDefault(
[bool test(T element)?]) → T? -
Available on Iterable<
get the first item that match expression or null if not anyT> , provided by the IterableExtensions extension -
indexedForEach(
void f(int index, T element)) → void -
Available on Iterable<
loop items with index and element argumentsT> , provided by the IterableExtensions extension -
indexedMap<
E> (E f(int index, T e)) → Iterable< E> -
Available on Iterable<
map elements with index and return new mapT> , provided by the IterableExtensions extension -
lastOrDefault(
[bool test(T element)?]) → T? -
Available on Iterable<
get the last item that match expression or null if not anyT> , provided by the IterableExtensions extension -
removeDuplicates(
[bool compare(T a, T b)?]) → List< T> -
Available on Iterable<
Return a new list without duplicated elements you can useT> , provided by the IterableExtensions extension.toSet().toList()
but the order may not be the same