RegexValidator constructor

const RegexValidator(
  1. RegExp pattern, {
  2. String? message,
})

Creates a RegexValidator with the specified pattern.

Implementation

const RegexValidator(this.pattern, {this.message});