digitsValidationMessage method

String digitsValidationMessage(
  1. String fieldName,
  2. int value
)

Generates a validation error message for a field that should be numeric with a specific length.

This message indicates that the fieldName must be numeric and have a length of exactly value.

Implementation

String digitsValidationMessage(String fieldName, int value) {
  return Intl.message(
    '$fieldName must be numeric and have a length of exactly $value.',
    name: 'digitsValidationMessage',
    desc:
        'Validation message for a field that should be numeric and have a specific length',
    args: [fieldName, value],
    locale: localeName,
  );
}