PasswordRule constructor

const PasswordRule(
  1. String message, {
  2. int minLength = 8,
  3. bool requireUppercase = true,
  4. bool requireLowercase = true,
  5. bool requireNumber = true,
  6. bool requireSpecialChar = true,
})

Creates a new PasswordRule.

Implementation

const PasswordRule(
  this.message, {
  this.minLength = 8,
  this.requireUppercase = true,
  this.requireLowercase = true,
  this.requireNumber = true,
  this.requireSpecialChar = true,
});