emailValidationMessage method

String emailValidationMessage(
  1. String fieldName
)

Generates a validation error message for an invalid email field.

This message indicates that the fieldName must be a valid email address.

Implementation

String emailValidationMessage(String fieldName) {
  return Intl.message(
    '$fieldName must be a valid email address.',
    name: 'emailValidationMessage',
    desc: 'Validation message for an email field',
    args: [fieldName],
    locale: localeName,
  );
}