whereIndexed method Null safety
- IndexedPredicate<
E> test
Returns a new lazy Iterable
with all elements that satisfy the predicate test
,
providing sequential index of the element.
Implementation
Iterable<E> whereIndexed(IndexedPredicate<E> test) {
final self = this;
return self != null ? _IndexedWhereIterable(self, test) : Iterable.empty();
}