checkOutOfRangeStatus method

dynamic checkOutOfRangeStatus (
  1. DateTime date
)

Implementation

checkOutOfRangeStatus(DateTime date) {
  date = DateTime(date.year, date.month, date.day);
  if (widget.startDate != null && widget.endDate != null) {
    if (!isDateBefore(date, widget.startDate) && !isDateAfter(date, widget.endDate)) {
      return false;
    } else {
      return true;
    }
  } else {
    return false;
  }
}