@override String? validate(F form, E key, int value) { if (value > max) { return loc.maxValueError(max); } return null; }