contramap<A> method
Apply fun
to the value of this Predicate<T>
and return a new Predicate<A>
.
Similar to map
for Predicates.
Implementation
Predicate<A> contramap<A>(T Function(A a) fun) =>
Predicate((a) => _predicate(fun(a)));