dateBeforeValidationMessage method

String dateBeforeValidationMessage(
  1. String fieldName,
  2. String before
)

Generates a validation error message for a date field that must be before another date.

This message indicates that the fieldName must be before before.

Implementation

String dateBeforeValidationMessage(String fieldName, String before) {
  return Intl.message(
    '$fieldName must be before $before.',
    name: 'dateBeforeValidationMessage',
    desc:
        'Validation message for a date field that must be before another date',
    args: [fieldName, before],
    locale: localeName,
  );
}