maxLength static method
Fails when longer than maxLength. UValidators.maxLength(maxLength: 20, message: "Too long")
Implementation
static FormFieldValidator<String> maxLength({required int maxLength, required String message}) => (String? value) {
if (value != null && value.length > maxLength) return message;
return null;
};