integerValidationMessage method

String integerValidationMessage(
  1. String fieldName
)

Generates a validation error message for a field that should be an integer.

This message indicates that the fieldName must be an integer.

Implementation

String integerValidationMessage(String fieldName) {
  return Intl.message(
    '$fieldName must be an integer.',
    name: 'integerValidationMessage',
    desc: 'Validation message for a field that should be an integer',
    args: [fieldName],
    locale: localeName,
  );
}