Skip to content

Commit

Permalink
Update country_codes.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ruivo authored May 14, 2024
1 parent 9586346 commit e602199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/country_codes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class CountryCodes {

/// Returns the `CountryDetails` for the given country alpha2 code.
static CountryDetails detailsFromAlpha2(String alpha2) {
return CountryDetails.fromMap(codes.entries.where((entry) => entry.key == alpha2).single);
return CountryDetails.fromMap(codes.entries.where((entry) => entry.key == alpha2).single.value);
}


Expand Down

0 comments on commit e602199

Please sign in to comment.