IterableExtensions<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
containsAll(
Iterable< T> other, {bool collapseDuplicates = true}) → bool -
Returns true if every element in
other
also exists in this. -
firstWhereOrNull(
bool test(T element)) → T? -
The first element satisfying
test
, ornull
if there are none. -
getRandom(
{int? seed}) → T? -
Returns a random element of this, or
null
if this is empty. -
mapMany<
TRes> (Iterable< TRes> ? selector(T item)) → Iterable<TRes>