RegEx constructor

const RegEx(
  1. String pattern
)

Validator that checks if a String value matches the given regex pattern.

Implementation

const RegEx(this.pattern);