fromNational static method

PhoneNumber fromNational(
  1. IsoCode isoCode,
  2. String national
)

Parses a national phone number given a country code and returns a PhoneNumber

This is useful for when you know in advance that a phone number is a national version. For example in a phone number input with two inputs for the iso code and national number

alias for PhoneParser.fromNational

Implementation

static PhoneNumber fromNational(
  IsoCode isoCode,
  String national,
) =>
    PhoneParser.fromNational(isoCode, national);