hasLowercase static method

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

Implementation

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