Country

data class Country(val name: String, val code: String, val dialCode: String, val flag: ImageVector? = null, val selected: Boolean = false)(source)

Data class representing a country.

Constructors

Link copied to clipboard
constructor(name: String, code: String, dialCode: String, flag: ImageVector? = null, selected: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ISO country code (e.g. "US", "GB", "KE").

Link copied to clipboard

The international dial code (e.g. "+1", "+44", "+254").

Link copied to clipboard

Always null.

Link copied to clipboard

The full name of the country.

Link copied to clipboard

Whether the country is currently selected in the UI, defaults to false.

Functions

Link copied to clipboard

Resolves a legacy LegacyCountry to its canonical counterpart.