alphaDashValidationMessage method
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,
);
}