isSameDate method

bool isSameDate(
  1. DateTime other
)

Checks if the current date is on the same day as other

Implementation

bool isSameDate(DateTime other) => year == other.year && month == other.month && day == other.day;