noSpecialChars method
Implementation
ValidatorString noSpecialChars(String chars,
{String Function(String ex)? errMsg}) {
validate((v) {
String err = errMsg != null
? errMsg(chars)
: 'Can not contain special characters $chars';
return value.toString().notContain(chars) ? null : err;
});
return this;
}