digitsBetweenValidationMessage method

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

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

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

Implementation

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