MaxLengthValidator<T> constructor

const MaxLengthValidator<T>(
  1. int maxLength, {
  2. String? errorText,
  3. bool checkNullOrEmpty = true,
})

Constructor for the maximum length validator.

Implementation

const MaxLengthValidator(
  this.maxLength, {

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

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