filterIndexed method

Iterable<T> filterIndexed(
  1. bool predicate(
    1. int,
    2. T
    )
)

Returns a list containing only elements matching the given predicate.

Implementation

Iterable<T> filterIndexed(bool Function(int, T) predicate) =>
    where(predicate as bool Function(T));