sizeValidationMessage method

String sizeValidationMessage(
  1. String fieldName,
  2. int value
)

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