isSameDay method

bool isSameDay(
  1. DateTime other
)

Returns true if this date falls on the exact same day as other.

Implementation

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