where<T> static method

List<T> where<T>(
  1. Iterable<T> list,
  2. bool predicate(
    1. T
    )
)

Filters list to elements matching predicate.

Implementation

static List<T> where<T>(Iterable<T> list, bool Function(T) predicate) =>
    list.where(predicate).toList();