maxSelectedValidationMessage method

String maxSelectedValidationMessage(
  1. String fieldName,
  2. int max
)

Generates a validation error message for a field that must have a maximum number of selected values.

This message indicates that you may only select max fieldName.

Implementation

String maxSelectedValidationMessage(String fieldName, int max) {
  return Intl.message(
    'You may only select $max $fieldName.',
    name: 'maxSelectedValidationMessage',
    desc:
        'Validation message for a field that must have a maximum number of selected values',
    args: [fieldName, max],
    locale: localeName,
  );
}