betweenValidationMessage method

String betweenValidationMessage(
  1. String fieldName,
  2. num min,
  3. num max
)

Generates a validation error message for a field that should have a size between two values.

This message indicates that the fieldName must have a size between min and max.

Implementation

String betweenValidationMessage(String fieldName, num min, num max) {
  return Intl.message(
    '$fieldName must have a size between $min and $max.',
    name: 'betweenValidationMessage',
    desc:
        'Validation message for a field that should have a size between two values',
    args: [fieldName, min, max],
    locale: localeName,
  );
}