different<T> static method

ValidationRule<T> different<T>(
  1. String otherField, {
  2. String? message,
})

Creates a Different validation rule.

This rule checks if a value is different from another field's value. It can include a custom validation message.

Implementation

static ValidationRule<T> different<T>(String otherField, {String? message}) =>
    Different<T>(otherField, message: message);