or method

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

Compose this Predicate with the given predicate using OR.

You can also use the | operator.

Implementation

Predicate<T> or(Predicate<T> predicate) =>
    Predicate((t) => _predicate(t) || predicate(t));