rangeSelectedValidationMessage method

String rangeSelectedValidationMessage(
  1. String fieldName,
  2. int min,
  3. int max
)

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

This message indicates that you must select between min and max $fieldName.

Implementation

String rangeSelectedValidationMessage(String fieldName, int min, int max) {
  return Intl.message(
    'You must select between $min and $max $fieldName.',
    name: 'rangeSelectedValidationMessage',
    desc:
        'Validation message for a field that must have a range of selected values',
    args: [fieldName, min, max],
    locale: localeName,
  );
}