not property

Predicate<T> not

Compose this Predicate with the given predicate using NOT (!).

You can also use the ~ operator.

Implementation

Predicate<T> get not => Predicate((t) => !_predicate(t));