checkDayisDisabled static method
Checking for date
in listOfDates
if it contains the same date
then
it returns true
else
returns false
Implementation
static bool checkDayisDisabled(
{required List<DateTime> listOfDates, required DateTime date}) {
return !listOfDates.any((element) => (element.year == date.year &&
element.month == date.month &&
element.day == date.day));
}