notInList static method

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

Ensures the value does NOT match any item in the provided list.

Implementation

static Validator notInList(List<String> values, {String? message}) =>
    Validator._()..notInList(values, message: message);