not function

IEskValidator not(
  1. IEskValidator validator
)

Passes the test if the passed in validator is not valid

Implementation

IEskValidator not(IEskValidator validator) => EskValidator((value) {
      final result = validator.validate(value);
      return EskResult(
        isValid: !result.isValid,
        error: 'not ${result.error}',
        value: value,
      );
    });