parsePhoneCode static method

Country parsePhoneCode(
  1. String phoneCode
)

Returns a single country if it matches the given phoneCode (e164_cc).

Throws a StateError if no matching element is found.

Implementation

static Country parsePhoneCode(String phoneCode) {
  return _getFromPhoneCode(phoneCode);
}