isSameDate method

bool isSameDate(
  1. DateTime other
)

return true if the dates is the same

Implementation

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