isSameDay method

bool isSameDay(
  1. DateTime other
)

Whether the date is on the same day (regardless of the time) as the given date.

Implementation

bool isSameDay(DateTime other) => _differenceInDays(other) == 0;