isNotExpired static method

bool isNotExpired(
  1. int year,
  2. int month
)

Implementation

static bool isNotExpired(int year, int month) {
  // It has not expired if both the year and date has not passed
  return !hasYearPassed(year) && !hasMonthPassed(year, month);
}