Same constructor
Same(
- 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);