notInList<T> static method

ValidationRule<T> notInList<T>(
  1. List<T> invalidValues, {
  2. String? message,
})

Creates a NotInList validation rule.

This rule checks if a value is not in the list of invalidValues. It can include a custom validation message.

Implementation

static ValidationRule<T> notInList<T>(List<T> invalidValues,
        {String? message}) =>
    NotInList(invalidValues, message: message);