filterIndexedTo method

void filterIndexedTo(
  1. List<T> destination,
  2. bool predicate(
    1. T element,
    2. int index
    )
)

Appends all elements matching the given predicate to the given destination.

Implementation

void filterIndexedTo(List<T> destination, bool predicate(T element, int index)) =>
    whereIndexedTo(destination, predicate);