regexValidationMessage method
Generates a validation error message for a field that must match a regex pattern.
This message indicates that the fieldName
must match the specified pattern.
Implementation
String regexValidationMessage(String fieldName) {
return Intl.message(
'$fieldName must match the specified pattern.',
name: 'regexValidationMessage',
desc: 'Validation message for a field that must match a regex pattern',
args: [fieldName],
locale: localeName,
);
}