isSameDay method

bool isSameDay(
  1. Time other
)

Checks if this Time instance represents the same calendar day as other. Ignores the time part.

Implementation

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