not function
Passes the test if the contition is !valid
Implementation
Validator not(Validator validator) {
return (value) {
final result = validator(value);
return Result(
isValid: !result.isValid,
expected: 'not ${result.expected}',
value: value,
);
};
}