Predicate<T>.not constructor
Predicate<T>.not (
- bool predicate(
- T
Build a Predicate that returns NOT (!) of the given predicate
.
You can also use the ~
operator.
Implementation
factory Predicate.not(bool Function(T) predicate) =>
Predicate((t) => !predicate(t));