dobYearValidator method

bool dobYearValidator(
  1. int year
)

Implementation

bool dobYearValidator(int year) {
  final currentYear = DateTime.now().year;
  const minimumAllowedYear = 1900;

  return year >= minimumAllowedYear && year <= currentYear;
}