validateExpirationString method

bool validateExpirationString(
  1. String date
)

Implementation

bool validateExpirationString(String date) {
  var monthYear = this.getMonthYearByFullExpiration(date);

  return this.validateExpiration(monthYear[0], monthYear[1]);
}