dateIsStartOrEnd method

bool dateIsStartOrEnd(
  1. DateTime date
)

Returns whether the date is the start or the end of the selected range or not. This is useful to display the correct border radius on the day tile.

Implementation

bool dateIsStartOrEnd(DateTime date) {
  return dateIsStart(date) || dateIsEnd(date);
}