password static method

bool password(
  1. String? newPassword
)

Implementation

static bool password(String? newPassword) {
  if (newPassword == null ||
      newPassword.length < 12 ||
      !Requirement.oneDigit.hasMatch(newPassword) ||
      !Requirement.oneSpecialCharacter.hasMatch(newPassword) ||
      !Requirement.oneLowercaseLetter.hasMatch(newPassword) ||
      !Requirement.oneUppercaseLetter.hasMatch(newPassword)) {
    return false;
  }
  return true;
}