country_code_conversion 1.0.3
country_code_conversion: ^1.0.3 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
3
likes
120
pub points
34%
popularity

A project to convert country codes to country names and vice versa.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on country_code_conversion