CountryListItemScope

data class CountryListItemScope(val match: CountryMatch, val selected: Boolean, val enabled: Boolean, val selectionMode: CountrySelectionMode, val onClick: () -> Unit)(source)

Everything a custom row renderer needs, so listItemContent does not need a dozen parameters.

Constructors

Link copied to clipboard
constructor(match: CountryMatch, selected: Boolean, enabled: Boolean, selectionMode: CountrySelectionMode, onClick: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard

Whether the row can be activated.

Link copied to clipboard

The country plus its search-highlight range.

Link copied to clipboard
val onClick: () -> Unit

Activates the row. Call this rather than reimplementing toggle logic.

Link copied to clipboard

Whether the row is selected (single) or ticked (multiple).

Link copied to clipboard

Drives whether the trailing control is a check or a checkbox.