OrPredicate class final
Disjunction. At least one child must hold. Flattens via Predicate.or.
Constructors
-
OrPredicate(List<
Predicate> children)
Properties
Methods
-
and(
Predicate other) → Predicate -
Returns a new Predicate that holds when both this and
otherhold. Flattens chains:a.and(b).and(c)produces a single 3-child AndPredicate, not a nested tree.inherited -
evaluate(
CItem item) → bool -
Evaluates this predicate against
item. Implementations should be allocation-free and side-effect-free.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
or(
Predicate other) → Predicate -
Returns a new Predicate that holds when at least one of this or
otherholds. Flattens chains the same way and does.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited