isStrongPassword property
bool
get
isStrongPassword
Validates if the password is strong. Rules: At least 1 uppercase, 1 lowercase, 1 number, 1 special character, and min length of 8.
Implementation
bool get isStrongPassword {
return RegExp(r'^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$').hasMatch(this);
}