validate static method

PasswordValidationResult validate(
  1. String password
)

Implementation

static PasswordValidationResult validate(String password) {
  return PasswordValidationResult(
    hasMinLength: password.length >= 14,
    hasUppercase: _uppercase.hasMatch(password),
    hasLowercase: _lowercase.hasMatch(password),
    hasDigit: _digit.hasMatch(password),
    hasSpecialChar: _special.hasMatch(password),
    hasNoBannedWords: _checkNoBannedWords(password),
  );
}