Skip to content

Commit

Permalink
Merge pull request #18 from wizlif/master
Browse files Browse the repository at this point in the history
export: Country details.
  • Loading branch information
miguelpruivo committed Oct 17, 2021
2 parents e84f3ba + 3f378b4 commit 0aa652f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/country_codes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ class CountryCodes {
.toList();
}

/// A list of country data for every country
static List<CountryDetails?> countryCodes() {
return codes.values
.map((each) => CountryDetails.fromMap(each))
.toList();
}

/// Returns the `CountryDetails` for the given [locale]. If not provided,
/// the device's locale will be used instead.
/// Have in mind that this is different than specifying `supportedLocale`s
Expand Down

0 comments on commit 0aa652f

Please sign in to comment.