v1.3.1
us_states
一個簡單的 Dart 庫,用於處理州名和縮寫。
12喜歡 6300近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個簡單的 Dart 庫,用於處理州名和縮寫。
^1.15.0^1.21.0^6.0.0以下為英文專案原文快照,最新內容請造訪 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", ...}