StartsWith constructor

StartsWith(
  1. String pattern
)

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

Parameters:

  • pattern: The prefix pattern to check for at the beginning of the value.

Implementation

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