country_code 0.1.1

Dart native js
Flutter Android iOS web

Provides list of ISO 3166-1 coutry codes in enum-like class

List of ISO 3166-1 assigned country codes.

pub package Build Status

Features #

  • [x] ISO 3166-1 alpha-2. alpha-3, and numeric country codes in enum-like class
  • [x] Parsing of country codes from string
  • [x] Support for (user-assigned code elements)[https://en.wikipedia.org/wiki/ISO_3166-1#Reserved_and_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)[https://github.com/denixport/dart.country/tree/master/example]

Bugs and feature requests #

Please file feature requests and bugs at the issue tracker.

5
likes
90
pub points
77%
popularity

Provides list of ISO 3166-1 coutry codes in enum-like class

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

denixport@gmail.com

License

MIT (LICENSE)

More

Packages that depend on country_code