isAfterOrSameDay method

bool isAfterOrSameDay(
  1. DateTime date
)

Implementation

bool isAfterOrSameDay(DateTime date) {
  return year > date.year ||
      year == date.year &&
          (month > date.month || month == date.month && day >= date.day);
}