fromRaw static method

PhoneNumber fromRaw(
  1. String phoneNumber
)

Parses a phoneNumber given a countryCode

Use fromIsoCode when possible as multiple countries use the same country calling code.

This method assumes the phone number starts with the country calling code

throws a PhoneNumberException if the country calling code is invalid

Implementation

static PhoneNumber fromRaw(String phoneNumber) =>
    PhoneParser.fromRaw(phoneNumber);