notInList method

Validator notInList(
  1. List<String> values, {
  2. String? message,
})

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;
}