phone static method

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

Validates a phone number, optionally enforcing a specific country.

FormRules.phone(country: PhoneCountry.us).build()

Implementation

static Validator phone(
        {RegExp? pattern, PhoneCountry? country, String? message}) =>
    Validator._()
      ..phone(pattern: pattern, country: country, message: message);