isSameDay method

bool isSameDay(
  1. DateTime other
)

년, 월, 일이 같은지 확인

Implementation

bool isSameDay(DateTime other) {
  return year == other.year && month == other.month && day == other.day;
}