getIsItStartAndEndDate method

bool getIsItStartAndEndDate(
  1. DateTime date
)

Implementation

bool getIsItStartAndEndDate(DateTime date) {
  if (startDate != null &&
      startDate!.day == date.day &&
      startDate!.month == date.month &&
      startDate!.year == date.year) {
    return true;
  } else if (endDate != null &&
      endDate!.day == date.day &&
      endDate!.month == date.month &&
      endDate!.year == date.year) {
    return true;
  } else {
    return false;
  }
}