dialCodeOf static method

String dialCodeOf(
  1. String countryCode
)

Dial code of an ISO code or dial code. UPhoneNumberUtils.dialCodeOf("IR") → "+98"

Implementation

static String dialCodeOf(String countryCode) {
  final String code = countryCode.trim();
  return code.startsWith("+") ? code : "+$code";
}