v1.3.1
us_states
Einfache Dart-Bibliothek zur Arbeit mit Bundeslandnamen und Abkürzungen.
12Likes 630030-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Einfache Dart-Bibliothek zur Arbeit mit Bundeslandnamen und Abkürzungen.
^1.15.0^1.21.0^6.0.0Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Simple Dart library to deal with state names and abbreviations.
Add the following to dependencies section in your pubspec.yml:
us_states: ^1.3.1
Returns null if not found.
USStates.getName("IA");
// returns "Iowa"
Returns null if not found.
USStates.getAbbreviation("Iowa");
// returns "IA"
USStates.getAllNames();
// returns ["Alaska", "Alabama", ...]
USStates.getAllAbbreviations();
// returns ["AK", "AL", ...]
USStates.getAbbreviationMap();
// returns {"AK": "Alaska", "AL": "Alabama", ...}
USStates.getNameMap();
// returns {"Alaska": "AK", "Alabama": "AL", ...}