hasYearPassed static method
Implementation
static bool hasYearPassed(int year) {
int fourDigitsYear = convertYearTo4Digits(year);
var now = DateTime.now();
// The year has passed if the year we are currently is more than card's
// year
return fourDigitsYear < now.year;
}