CountrySearchItem

data class CountrySearchItem(val name: String, val countryPhoneCode: String, val flag: LbcImageSpec, val isSelected: Boolean, val isoName: String)

Represents a country search item.

Constructors

Link copied to clipboard
constructor(name: String, countryPhoneCode: String, flag: LbcImageSpec, isSelected: Boolean, isoName: String)

Properties

Link copied to clipboard

The country phone code (e.g., "33", "1", "225").

Link copied to clipboard
val flag: LbcImageSpec

The flag of the country as an LbcImageSpec.

Link copied to clipboard
Link copied to clipboard

Indicates if the country is currently selected.

Link copied to clipboard

The name of the country.

Functions

Link copied to clipboard
fun getAnnotatedName(searchedText: String, nonMatchingSpanStyle: SpanStyle, matchingSpanStyle: SpanStyle): LbcTextSpec.Annotated

Returns an LbcTextSpec.Annotated representation of the country's name, with parts of the name matching the searchedText highlighted using the provided matchingSpanStyle.