notInList<T> static method
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);