hasMonthPassed static method
Implementation
static bool hasMonthPassed(int year, int month) {
var now = DateTime.now();
// The month has passed if:
// 1. The year is in the past. In that case, we just assume that the month
// has passed
// 2. Card's month (plus another month) is more than current month.
//return hasYearPassed(year) || convertYearTo4Digits(year) == now.year && (month < now.month + 1);
return hasYearPassed(year) ||
convertYearTo4Digits(year) == now.year && (month < now.month);
}