isNotPresent top-level constant

const isNotPresent = const NotPresentMatcher()

This instance is used to validate that a key does not exist in partial or HTTP response headers.

This matcher only works when using partial or when matching headers in one of the various HTTP response matchers like expectResponse, hasResponse or hasHeaders.

    expect(map, partial({
      "id" : greaterThan(0),
      "foo" : isNotPresent
    });

Implementation

const Matcher isNotPresent = const NotPresentMatcher()