isBeforeDay method

bool isBeforeDay(
  1. DateTime time
)

Implementation

bool isBeforeDay(DateTime time) {
  if (year > time.year) {
    return false;
  }
  if (year < time.year) {
    return true;
  }

  if (month > time.month) {
    return false;
  }
  if (month < time.month) {
    return true;
  }

  return day < time.day;
}