PasswordValidationConfig constructor

const PasswordValidationConfig({
  1. int minLength = 8,
  2. int maxLength = 128,
  3. bool requireUppercase = true,
  4. bool requireLowercase = true,
  5. bool requireDigit = true,
  6. bool requireSpecialCharacter = true,
  7. bool rejectCommonPasswords = true,
  8. bool rejectRepeatedCharacters = true,
  9. bool rejectSequentialPatterns = true,
  10. int minSequentialRun = 4,
  11. Set<String> commonPasswords = _defaultCommonPasswords,
  12. List<String> commonPrefixes = _defaultCommonPrefixes,
})

Creates a password validation config.

Implementation

const PasswordValidationConfig({
  this.minLength = 8,
  this.maxLength = 128,
  this.requireUppercase = true,
  this.requireLowercase = true,
  this.requireDigit = true,
  this.requireSpecialCharacter = true,
  this.rejectCommonPasswords = true,
  this.rejectRepeatedCharacters = true,
  this.rejectSequentialPatterns = true,
  this.minSequentialRun = 4,
  this.commonPasswords = _defaultCommonPasswords,
  this.commonPrefixes = _defaultCommonPrefixes,
});