maxLengthValidationMessage method

String maxLengthValidationMessage(
  1. String fieldName,
  2. int length
)

Generates a validation error message for a field longer than the maximum length.

This message indicates that the fieldName must not exceed length characters.

Implementation

String maxLengthValidationMessage(String fieldName, int length) {
  return Intl.message(
    '$fieldName must not exceed $length characters.',
    name: 'maxLengthValidationMessage',
    desc: 'Validation message for a field longer than the maximum length',
    args: [fieldName, length],
    locale: localeName,
  );
}