getName static method

String? getName(
  1. String stateAbbreviation
)

Takes case-insensitive abbreviation of state and returns name.

If name is not found, null is returned.

Implementation

static String? getName(String stateAbbreviation) {
  final abbrev = stateAbbreviation.toUpperCase();

  return states[abbrev];
}