PasswordRuleSet constructor
PasswordRuleSet({})
Implementation
PasswordRuleSet(
{this.uppercase,
this.lowercase,
this.minLength,
this.maxLength,
this.digits,
this.specialCharacters})
: _rules = (<Rule, int?>{
Rule.uppercaseLetters: uppercase,
Rule.lowercaseLetters: lowercase,
Rule.minLength: minLength,
Rule.maxLength: maxLength,
Rule.digits: digits,
Rule.specialCharacters: specialCharacters,
}..removeWhere((key, value) => value == null))
.cast<Rule, int>();