isSameDay method

bool isSameDay(
  1. DateTime other
)

Check if the DateTime is in the same day as the other.

Implementation

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