Regex constructor

const Regex(
  1. String pattern, {
  2. String? messageId,
  3. String? message,
})

Validates a String using a RegExp.

Implementation

const Regex(this.pattern, {this.messageId, this.message});