notInList method
Ensures the value does NOT match any item in the provided list.
Implementation
Validator notInList(List<String> values, {String? message}) {
_rules.add(NotInListRule(values, message ?? _messages.notInList));
return this;
}
Ensures the value does NOT match any item in the provided list.
Validator notInList(List<String> values, {String? message}) {
_rules.add(NotInListRule(values, message ?? _messages.notInList));
return this;
}