isBefore method

bool isBefore(
  1. Date that
)

Implementation

bool isBefore(final Date that) {
  return (this.day < that.day && this.month <= that.month && this.year <= that.year) ||
      (this.month < that.month && this.year <= that.year) ||
      (this.year < that.year);
}