predicateWithAngel function

AngelMatcher predicateWithAngel (
  1. FutureOr<bool> f(
    1. String,
    2. Object,
    3. Angel
  2. [String description = 'satisfies function']

Returns an AngelMatcher that uses an arbitrary function that returns true or false for the actual value.

Analogous to the synchronous predicate matcher.


AngelMatcher predicateWithAngel(
        FutureOr<bool> Function(String, Object, Angel) f,
        [String description = 'satisfies function']) =>
    _PredicateWithAngel(f, description);