same<T> static method

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

Creates a Same validation rule.

This rule checks if a value is the same as another field's value. It can include a custom validation message.

Implementation

static ValidationRule<T> same<T>(
        {required String otherField, String? message}) =>
    Same(otherField, message: message);