whereToList method

List<E> whereToList(
  1. bool test(
    1. E e
    )
)

Returns a new list containing elements that satisfy the given test.

Implementation

List<E> whereToList(bool Function(E e) test) => where(test).toList();