DateRangeValidator constructor

const DateRangeValidator(
  1. DateTime minDate,
  2. DateTime maxDate, {
  3. String? errorText,
  4. bool checkNullOrEmpty = true,
})

Constructor for the date range validator.

Implementation

const DateRangeValidator(
  this.minDate,
  this.maxDate, {

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

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