passwordValidationWithSpecialCharacters method
password validation
method
Implementation
bool passwordValidationWithSpecialCharacters(String password) {
final RegExp regex = RegExp(
r'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#\$&*~]).{8,}$',
);
return regex.hasMatch(password);
}