Skip to content

Commit e602199

Browse files
author
Miguel Ruivo
authored
Update country_codes.dart
1 parent 9586346 commit e602199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/country_codes.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CountryCodes {
8585

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

9191

0 commit comments

Comments
 (0)