Same constructor

Same(
  1. String pattern
)

Creates an instance of the Same validation rule with a specified pattern.

Parameters:

  • pattern: The value to compare for equality.

Implementation

Same(this.pattern) : super.withKey(key);