We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9586346 commit e602199Copy full SHA for e602199
lib/src/country_codes.dart
@@ -85,7 +85,7 @@ class CountryCodes {
85
86
/// Returns the `CountryDetails` for the given country alpha2 code.
87
static CountryDetails detailsFromAlpha2(String alpha2) {
88
- return CountryDetails.fromMap(codes.entries.where((entry) => entry.key == alpha2).single);
+ return CountryDetails.fromMap(codes.entries.where((entry) => entry.key == alpha2).single.value);
89
}
90
91
0 commit comments