isSameDay method

bool isSameDay(
  1. DateTime other
)

Returns true if the date is in the same day as other, false otherwise.

Implementation

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