validDateRange static method
check valid date range or not
Implementation
static bool validDateRange(
{required String fromDate, required String toDate}) {
if ((DateTimes.stringToDateTime(date: fromDate))
.isBefore((DateTimes.stringToDateTime(date: toDate)))) {
return true;
} else {
return false;
}
}