Country

class Country(val code: String, val phoneNoCode: String, val name: String, val flag: DrawableResource)

Country holds the data of a country.

This class is intentionally not a data class to preserve binary compatibility when properties are added or reordered in future versions.

Parameters

code

The ISO 3166-1 alpha-2 code of the country (e.g. "ke").

phoneNoCode

The phone number code of the country (e.g. "+254").

name

The display name of the country (e.g. "Kenya").

flag

The flag drawable resource of the country.

Constructors

Link copied to clipboard
constructor(code: String, phoneNoCode: String, name: String, flag: DrawableResource)

Properties

Link copied to clipboard
Link copied to clipboard
val flag: DrawableResource
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String