UniqueValidator<T> constructor

const UniqueValidator<T>(
  1. List<T> values, {
  2. String? errorText,
  3. bool checkNullOrEmpty = true,
})

Constructor for the unique value validator.

Implementation

const UniqueValidator(
  this.values, {

  /// {@macro base_validator_error_text}
  super.errorText,

  /// {@macro base_validator_null_check}
  super.checkNullOrEmpty,
});