Returns whether the date is the end of the selected range or not.
date
bool dateIsEnd(DateTime date) { if (endDate == null) { return false; } return areSameDay(date, endDate!); }