@override String? validate(F form, E key, DateTime value) { if (value.isAfter(max)) { return loc.maxDateError(max); } return null; }