NotInList<T> constructor

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

Creates a new instance of the NotInList validation rule.

  • invalidValues: The list of invalid values (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

NotInList(this.invalidValues, {String? message}) : super(message);