Different<T> constructor

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

Creates a new instance of the Different validation rule.

  • otherField: The name of the other field to compare against (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

Different(this.otherField, {String? message}) : super(message);