maxValueValidationMessage method
Generates a validation error message for a field with maximum value.
This message indicates that the fieldName
must have a maximum value of value
.
Implementation
String maxValueValidationMessage(String fieldName, int value) {
return Intl.message(
'$fieldName must have a maximum value of $value.',
name: 'maxValueValidationMessage',
desc: 'Validation message for a field with maximum value',
args: [fieldName, value],
locale: localeName,
);
}