isBefore method

bool isBefore(
  1. Date other
)

Implementation

bool isBefore(Date other) {
  DateTime dateTime = DateTime(year, month, day);
  return dateTime.isBefore(DateTime(other.year, other.month, other.day));
}