phoneNumber static method

ValidationRule<String> phoneNumber({
  1. String? message,
})

Creates a PhoneNumber validation rule. This rule checks if a string is a valid phone number. It can include a custom validation message.

Implementation

static ValidationRule<String> phoneNumber({String? message}) =>
    PhoneNumber(message: message);