PasswordValidationConfig constructor
const
PasswordValidationConfig({
- int minLength = 8,
- int maxLength = 128,
- bool requireUppercase = true,
- bool requireLowercase = true,
- bool requireDigit = true,
- bool requireSpecialCharacter = true,
- bool rejectCommonPasswords = true,
- bool rejectRepeatedCharacters = true,
- bool rejectSequentialPatterns = true,
- int minSequentialRun = 4,
- Set<
String> commonPasswords = _defaultCommonPasswords, - 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,
});