getZoneCountryDialCode static method

Future<String> getZoneCountryDialCode(
  1. String defaultCountryDial
)

Implementation

static Future<String> getZoneCountryDialCode(String defaultCountryDial) async {
  if( DeviceTools.isPlatformWeb() ) {
    return defaultCountryDial;
  }

  final isoName = await getCountryISOCode(); //example: "US"
  final countryDial = await CountryDialCode.fromCountryCode(isoName);
  return countryDial.dialCode;
}