MsIterableUtils<V> extension
- on
-
- Iterable<
V>
- Iterable<
Properties
- firstOrNull → V?
-
Available on Iterable<
Returns first element in array, if it's empty returns null.V> , provided by the MsIterableUtils extensionno setter - lastOrNull → V?
-
Available on Iterable<
Returns last element in array, if it's empty returns null.V> , provided by the MsIterableUtils extensionno setter
Methods
-
containsAll(
Iterable< V> other) → bool -
Available on Iterable<
Check if contains all elements in theV> , provided by the MsIterableUtils extensionother
list. -
containsAny(
Iterable< V> other) → bool -
Available on Iterable<
Check if contains any elements in theV> , provided by the MsIterableUtils extensionother
list. -
containsAtLeast(
Iterable< V> other, int atLeast) → bool -
Available on Iterable<
Check ifV> , provided by the MsIterableUtils extensionatLeast
elements in theother
list. -
containsHits(
Iterable< V> other) → int -
Available on Iterable<
Count of items that hit both listsV> , provided by the MsIterableUtils extension -
diff(
List< V> other) → List<V> -
Available on Iterable<
Elements that you have in this and do not have inV> , provided by the MsIterableUtils extensionother
. -
firstWhereOrNull(
bool test(V)) → V? -
Available on Iterable<
Return first element that's pass inV> , provided by the MsIterableUtils extensiontest
or null if not found. -
flat(
) → List< V> -
Available on Iterable<
Flatting a list that has other lists inside other lists inside other lists ... recursiveV> , provided by the MsIterableUtils extension -
forEachAsync(
Future< void> forEach(V element), [int parallels = 1]) → Future<void> -
Available on Iterable<
Iterable elements with support async function and runs it's inV> , provided by the MsIterableUtils extensionparallels
-
groupBySize(
int sizeEachList) → Iterable< Iterable< V> > -
Available on Iterable<
Groups the items into sub-lists of the size given inV> , provided by the MsIterableUtils extensionsizeEachList
-
intersection(
Iterable< V> other) → Iterable<V> -
Available on Iterable<
Common elements between this list andV> , provided by the MsIterableUtils extensionother
-
isFirst(
V element) → bool -
Available on Iterable<
Returns a true value if element is the first in the list.V> , provided by the MsIterableUtils extension -
isFirstIndex(
int index) → bool -
Available on Iterable<
Returns a true value if index is the first in the list.V> , provided by the MsIterableUtils extension -
isLast(
V element) → bool -
Available on Iterable<
Returns a true value if element is the last in the list.V> , provided by the MsIterableUtils extension -
isLastIndex(
int index) → bool -
Available on Iterable<
Returns a true value if index is the last in the list.V> , provided by the MsIterableUtils extension -
joinLast(
[String separator = '', String? last]) → String -
Available on Iterable<
It joins all elements of the list with one separator and for the last iteration a different separator.V> , provided by the MsIterableUtils extension -
lastWhereOrNull(
bool test(V)) → V? -
Available on Iterable<
Return last element that's pass inV> , provided by the MsIterableUtils extensiontest
or null if not found. -
mapAsStream(
Future< V> forEach(V element), [int parallels = 1]) → Stream<V> -
Available on Iterable<
Iterable elements with support async and emits eachV> , provided by the MsIterableUtils extensionforEach
async ends. -
toMap<
K> (GeneratorKey< V, K> generateKey) → Map<K, V> -
Available on Iterable<
Returns a Map with keys that's generated by generator.V> , provided by the MsIterableUtils extension -
toStream(
[Duration? interval]) → Stream< V> -
Available on Iterable<
Creates a stream with the items in the list.V> , provided by the MsIterableUtils extension
Operators
-
operator -(
Iterable< V> other) → Iterable<V> -
Available on Iterable<
Elements that you have in this and do not have inV> , provided by the MsIterableUtils extensionother
. Short operator of the diff function