Same<T> constructor

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

Creates a new instance of the Same validation rule.

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

Implementation

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