isStrongPassword property

bool get isStrongPassword

Implementation

bool get isStrongPassword {
 final password = this;
 final hasUpperCase = RegExp(r'[A-Z]').hasMatch(password);
 final hasLowerCase = RegExp(r'[a-z]').hasMatch(password);
 final hasDigits = RegExp(r'\d').hasMatch(password);
 final hasSpecialCharacters = RegExp(r'[!@#$%^&*(),.?":{}|<>]').hasMatch(password);
 final isValidLength = password.length >= 8;

 return hasUpperCase && hasLowerCase && hasDigits && hasSpecialCharacters && isValidLength;
  }