isSameDay method

bool isSameDay(
  1. DateTime other
)

Checks if this DateTime represents the same day as the other DateTime.

Implementation

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