containsPair function Null safety

Matcher containsPair(
  1. Object? key,
  2. Object? valueOrMatcher
)

Returns a matcher which matches maps containing the key-value pair with key => valueOrMatcher.

Implementation

Matcher containsPair(Object? key, Object? valueOrMatcher) =>
    _ContainsMapping(key, wrapMatcher(valueOrMatcher));