minLengthValidationMessage method
Generates a validation error message for a field shorter than the minimum length.
This message indicates that the fieldName
must be at least length
characters long.
Implementation
String minLengthValidationMessage(String fieldName, int length) {
return Intl.message(
'$fieldName must be at least $length characters long.',
name: 'minLengthValidationMessage',
desc: 'Validation message for a field shorter than the minimum length',
args: [fieldName, length],
locale: localeName,
);
}