minSelectedValidationMessage method

String minSelectedValidationMessage(
  1. String fieldName,
  2. int min
)

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

This message indicates that you must select at least min $fieldName.

Implementation

String minSelectedValidationMessage(String fieldName, int min) {
  return Intl.message(
    'You must select at least $min $fieldName.',
    name: 'minSelectedValidationMessage',
    desc:
        'Validation message for a field that must have a minimum number of selected values',
    args: [fieldName, min],
    locale: localeName,
  );
}