hasUppercase static method

Validator<String> hasUppercase({
  1. String? error,
})

Implementation

static Validator<String> hasUppercase({String? error}) => (value, context) {
      if (context.resources.uppercaseLetterPattern.hasMatch(value)) {
        return (true, null);
      }
      return (false, error ?? context.errors.passwordErrors.hasUppercase());
    };