and method

Predicate<T> and(
  1. Predicate<T> predicate
)

Compose this Predicate with the given predicate using AND.

You can also use the & operator.

Implementation

Predicate<T> and(Predicate<T> predicate) =>
    Predicate((t) => _predicate(t) && predicate(t));