country_code 1.0.0 icon indicating copy to clipboard operation
country_code: ^1.0.0 copied to clipboard

Provides list of ISO 3166-1 coutry codes in enum-like class, as well as parsing and user-assigned code elements

List of ISO 3166-1 assigned country codes.

pub package Build Status License

Features #

  • ISO 3166-1 alpha-2. alpha-3, and numeric country codes in enum-like class
  • Parsing of country codes from string
  • Support for user-assigned code elements

Usage #

import 'package:country_code/country_code.dart';

var code = CountryCode.tryParse("US");
if (code == CountryCode.US) {
  print(code.alpha2);
  print(code.alpha3);
  print(code.numeric);
}

See more examples

Bugs and feature requests #

Please file feature requests and bugs at the issue tracker.

15
likes
140
pub points
91%
popularity

Publisher

unverified uploader

Provides list of ISO 3166-1 coutry codes in enum-like class, as well as parsing and user-assigned code elements

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on country_code