maxLength static method
Implementation
static FormFieldValidator<String> maxLength({
required int maxLength,
required String message,
}) =>
(String? value) {
if (value != null && value.length > maxLength) {
return message;
}
return null;
};