expiryYearValidator method

bool expiryYearValidator(
  1. int year
)

Implementation

bool expiryYearValidator(int year) {
  final currentYear = DateTime.now().year;

  return year >= currentYear;
}