filterIndexed method

Iterable<E> filterIndexed(
  1. bool predicate(
    1. E element,
    2. int index
    )
)

Returns all elements that satisfy the given predicate.

Implementation

Iterable<E> filterIndexed(bool Function(E element, int index) predicate) =>
    whereIndexed(predicate);