contramap<A> method

Predicate<A> contramap<A>(
  1. T fun(
    1. A a
    )
)

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)));