CountryListX extension

Fluent query extensions on List<Country>.

on

Properties

independent List<Country>

Available on List<Country>, provided by the CountryListX extension

Independent countries.
no setter
landlocked List<Country>

Available on List<Country>, provided by the CountryListX extension

Landlocked countries.
no setter
sortedByArea List<Country>

Available on List<Country>, provided by the CountryListX extension

Sorted by area, largest first.
no setter
sortedByName List<Country>

Available on List<Country>, provided by the CountryListX extension

Sorted alphabetically by Country.name.
no setter
unMembers List<Country>

Available on List<Country>, provided by the CountryListX extension

UN member countries.
no setter

Methods

areaBiggerThan(double km2) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries larger than km2 square kilometres.
areaSmallerThan(double km2) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries smaller than km2 square kilometres.
borderingCountries(List<String> alpha3Codes) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries whose alpha-3 code is in alpha3Codes (i.e. the actual neighbours).
byCode(String alpha2) Country?

Available on List<Country>, provided by the CountryListX extension

Look up a single country by alpha-2 code. Returns null if not found.
byRegion(Region region) List<Country>

Available on List<Country>, provided by the CountryListX extension

All countries in region.

Available on List<Country>, provided by the CountryListX extension

Countries whose name, nativeName, altSpellings, or capital contains query (case-insensitive).
withCurrency(String isoCode) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries using the given ISO 4217 currency code (e.g. 'USD').
withDialCode(String prefix) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries whose calling code starts with prefix (e.g. '1' for +1).
withLanguage(String isoCode) List<Country>

Available on List<Country>, provided by the CountryListX extension

Countries where isoCode is an official language (ISO 639-3).