BlocxDateRangeValidator constructor
BlocxDateRangeValidator({})
Creates a validator that enforces the date to be within minDate and maxDate.
Implementation
BlocxDateRangeValidator({required this.minDate, required this.maxDate, super.duration})
: assert(
maxDate.isAfter(minDate) || maxDate.isAtSameMomentAs(minDate),
'maxDate must be after or equal to minDate',
);