country_code_conversion 1.0.4 country_code_conversion: ^1.0.4 copied to clipboard
A project to convert country codes to country names and vice versa.
country_code_conversion #
Currently support 54 languages.
Usage #
import 'package:country_code_conversion/country_code_conversion.dart';
final countryCodeConversion = CountryCodeConversion();
String? name = countryCodeConversion.getDisplayLanguageByCode("vi-VN");
String? nameE = countryCodeConversion.getEnglishDisplayLanguageByCode("vi-VN");
String? code = countryCodeConversion.getLanguageCodeByName("Tiếng Việt");
String? codeE = countryCodeConversion.getLanguageCodeByName("Vietnamese");
print(name); // Tiếng Việt
print(nameE); // Vietnamese
print(code); // vi-VN
print(codeE); // vi-VN