PhoneRule constructor

const PhoneRule(
  1. String message, {
  2. RegExp? pattern,
  3. PhoneCountry? country,
})

Creates a new PhoneRule with the given message and optional pattern or country.

Implementation

const PhoneRule(this.message, {this.pattern, this.country});