minLengthValidationMessage method

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

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,
  );
}