filterTo method

void filterTo(
  1. List<T> destination,
  2. bool predicate(
    1. T element
    )
)

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

Implementation

void filterTo(List<T> destination, bool predicate(T element)) =>
    whereTo(destination, predicate);