Country
The canonical country representation for the whole library.
Identity is iso2Code and nothing else. Dial codes are explicitly not unique — +1 is shared by the US, Canada and a dozen Caribbean territories, and +44 by the UK, Jersey, Guernsey and the Isle of Man — so equals/hashCode and every list key are derived from the ISO alpha-2 code alone.
Instances are cheap to compare and safe to use as Compose keys: the class is Immutable, and the normalized search fields are computed once when the dataset is built rather than per recomposition (see normalizedName, normalizedAliases).
Constructors
Properties
Extra names and abbreviations matched by search (e.g. "uae", "holland", "deutschland"). Never shown in the UI.
dialCode without the leading + (e.g. "254"). Used for numeric dial-code search.
Name shown to the user (e.g. "Kenya"). See com.ezzy.ccp.countrypicker.data.DefaultCountryDataSource.localizedNames for the locale-aware variant resolved by the data source.
Geographic region used by the sheet's region filters.
Functions
Projects a canonical Country into the legacy SelectedCountry used by Phone.