isSameDay method

bool isSameDay(
  1. DateTime b
)

Checks if two DateTime instances fall on the same day.

Implementation

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