message method
The error message to be displayed if the validation fails.
Implementation
@override
String message(dynamic value, [List<String>? options]) {
if (options != null && options.isNotEmpty) {
return 'This field must not exceed ${options[0]} characters.';
}
return 'This field must not exceed the maximum length.';
}