v1.3.1
us_states
一个简单的 Dart 库,用于处理州名和缩写。
12喜欢 2.9万近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个简单的 Dart 库,用于处理州名和缩写。
以下为英文项目原文快照,最新内容请访问 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", ...}
依赖清单 3 项
^1.15.0^1.21.0^6.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗