Country Search State
State holder for country search and filtering inside the countries bottom sheet.
All derived lists (pinnedList, filteredCountries) recompute automatically via derivedStateOf — no coroutines or manual invalidation needed.
Parameters
Whitelist of ISO codes to show. Empty = all countries.
Blacklist of ISO codes to hide regardless of countriesToShow.
ISO codes of countries pinned to a "Suggested" section at the top of the list. Only visible when query is blank.
Create via rememberCountrySearchState.
Constructors
Properties
Grouped and filtered country list. When query is blank and pinnedCountries is set, pinned countries are excluded from this map to avoid duplication with pinnedList.
Countries pinned to the top "Suggested" section. Empty while the user is searching, so the pinned header disappears and the results are consolidated.