EqualLengthValidator<T> constructor

const EqualLengthValidator<T>(
  1. int length, {
  2. bool allowEmpty = false,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the equal length validator.

Implementation

const EqualLengthValidator(
  this.length, {
  this.allowEmpty = false,

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

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