password static method
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;
}