RegexRule constructor

const RegexRule(
  1. RegExp pattern,
  2. String message
)

Creates a new RegexRule with the given pattern and message.

Implementation

const RegexRule(this.pattern, this.message);