isSameDay method

bool isSameDay(
  1. DateTime time
)

Implementation

bool isSameDay(DateTime time) {
  return year == time.year && month == time.month && day == time.day;
}