where method

List<T> where(
  1. bool test(
    1. T
    )
)

Returns a filtered list containing elements that satisfy test.

Implementation

List<T> where(bool Function(T) test) => value.where((e) => test(e)).toList();