dateIsEnd method

bool dateIsEnd(
  1. DateTime date
)

Returns whether the date is the end of the selected range or not.

Implementation

bool dateIsEnd(DateTime date) {
  if (endDate == null) {
    return false;
  }

  return areSameDay(date, endDate!);
}