PasswordError constructor
const
PasswordError({
- String requiredErrorMsg = "Password is required",
- String minLengthErrorMsg = "",
- String uppercaseErrorMsg = "Password must include at least one uppercase letter ",
- String specialCharacterErrorMsg = "Password must include at least one special character",
- String digitsErrorMsg = "Password must include at least one digit from 0 to 9",
- String? error,
Implementation
const PasswordError({
String requiredErrorMsg = "Password is required",
this.minLengthErrorMsg = "",
this.uppercaseErrorMsg = "Password must include at least one uppercase letter ",
this.specialCharacterErrorMsg = "Password must include at least one special character",
this.digitsErrorMsg = "Password must include at least one digit from 0 to 9",
String? error,
}) : super(error: error, requiredErrorMsg: requiredErrorMsg);