Predicate<T>.not constructor

Predicate<T>.not(
  1. bool predicate(
    1. 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));