bool dobYearValidator(int year) { final currentYear = DateTime.now().year; const minimumAllowedYear = 1900; return year >= minimumAllowedYear && year <= currentYear; }