simple static method
Implementation
static Validator<String> simple({String? error}) => (value, context) {
if (context.resources.simplePasswordPattern.hasMatch(value)) {
return (true, null);
}
return (false, error ?? context.errors.passwordErrors.simple());
};