alphaDashValidationMessage method

String alphaDashValidationMessage(
  1. String fieldName
)

Generates a validation error message for a field that may only contain alphanumeric characters, dashes, and underscores.

This message indicates that the fieldName may only contain alphanumeric characters, dashes, and underscores.

Implementation

String alphaDashValidationMessage(String fieldName) {
  return Intl.message(
    '$fieldName may only contain alphanumeric characters, dashes, and underscores.',
    name: 'alphaDashValidationMessage',
    desc:
        'Validation message for a field that may only contain alphanumeric characters, dashes, and underscores',
    args: [fieldName],
    locale: localeName,
  );
}