validDateRange method Null safety
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;
}
}