MaxValidator<T> constructor

const MaxValidator<T>(
  1. num max, {
  2. bool inclusive = true,
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the maximum value validator.

Implementation

const MaxValidator(
  this.max, {
  this.inclusive = true,

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

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