isSameDay method

bool isSameDay(
  1. DateTime compareDate
)

检查是否为同一天

Implementation

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