OrPredicate class final

Disjunction. At least one child must hold. Flattens via Predicate.or.

Inheritance

Constructors

OrPredicate(List<Predicate> children)

Properties

children List<Predicate>
final
hashCode int
The hash code for this object.
no setterinherited
not Predicate
Returns the negation. Double-negation collapses: p.not.not == p.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(Predicate other) Predicate
Returns a new Predicate that holds when both this and other hold. 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 other holds. 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