Returns a stream consisting of elements that match the given predicate.
final evens = IntStream.range(1, 10) .filter((n) => n % 2 == 0);
IntStream filter(bool Function(int) predicate);