@override String? validate(F form, E key, String value) { if (!_regex.hasMatch(value)) { return loc.onlyNumbersAllowed; } return null; }