Skip to content
pubscout

us_states

1.3.1, released 7 months ago by webb.engineer

Dart library to deal with US state names and abbreviations.

WASM-ready
$ flutter pub add us_states
Source repository

What it does

It provides methods to look up US state names from abbreviations and vice versa. It also lets developers retrieve lists and maps of all state names and abbreviations.

AI-written summary of version 1.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to map US state abbreviations to full names or vice-versa in Dart or Flutter.
  • You want case-insensitive lookups for US states.

Skip it when

  • You need international location or address validation beyond US states.

Strengths

  • Simple API with case-insensitive methods
  • Pure Dart library compatible with all platforms

Weaknesses

  • Limited in scope strictly to US states

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
USStates.getName("IA");
USStates.getAbbreviation("Iowa");