where method
Returns a new lazy Iterable with all elements that satisfy the predicate function.
function: A function that returnstruefor elements to include.- Returns: A lazy iterable of matching elements.
Implementation
Iterable<T> where(bool Function(T function) function) =>
value.where(function);