v1.3.1
us_states
주 이름과 약어를 다루는 간단한 Dart 라이브러리입니다.
12좋아요 6.3천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", ...}