FLUTTER ECOSYSTEM

denixport/dart.country

Dart-Paket für ISO-3166-1-Ländercodes

Projektcover von dart.country
Stars
12
Forks
5
Letzter Push (UTC)
01.09.2024
Projektstatus
Aktiv
Denis Portnov GitHub avatar
GITHUB User

Denis Portnov ↗

SprachenDart

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 2 Einträge

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

List of ISO 3166-1 assigned country codes.

pub package License

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

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.