validator property

  1. @override
EzValidator<DateTime> get validator
override

Implementation

@override
EzValidator<DateTime> get validator {
  final base = super.validator.date(message);
  if (minDate != null) return base.minDate(minDate!);
  if (maxDate != null) return base.maxDate(maxDate!);
  return base;
}