differentValidationMessage method
Generates a validation error message for a field that should have a different value from another field.
This message indicates that the fieldName
must have a different value from field
.
Implementation
String differentValidationMessage(String fieldName, String field) {
return Intl.message(
'$fieldName must have a different value from $field.',
name: 'differentValidationMessage',
desc:
'Validation message for a field that should be different from another field',
args: [fieldName, field],
locale: localeName,
);
}