matchNot static method
FormFieldValidator that requires the field's value not to match the provided regex pattern.
Parameters:
regex
The regex pattern to match.errorText
The error message when the value matches the pattern.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<String> matchNot(
RegExp regex, {
String? errorText,
bool checkNullOrEmpty = true,
}) => MatchNotValidator(
regex,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;