setValidDate static method
set valid date from valid date range
Implementation
static String setValidDate(
{required String fromDate, required String toDate}) {
if (DateTimes.validDateRange(fromDate: fromDate, toDate: toDate)) {
return toDate;
} else {
return fromDate;
}
}