differentFrom function
Asserts that for a key x
, the value of x
is not equal to the value for key
.
Implementation
ContextAwareMatcher differentFrom(String key) {
return predicateWithContext(
(item, key, context, matchState) {
return !equals(item).matches(context[key], matchState);
},
'is different from the value of "$key"',
);
}