validatePassword1Symbol function
Implementation
String? validatePassword1Symbol(String value, BuildContext context) {
if (!RegExp(r'[^\w\s]').hasMatch(value)) {
return NegoLocalizations.of(context)?.validatePassword1Symbol ??
'The password must contain at least 1 symbol';
}
return null;
}