filterIndexedTo method

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

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

Implementation

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