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