filterTo method

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

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

Implementation

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