CountryPickerViewModel

ViewModel for managing the state of the country picker.

This ViewModel handles the state of the country picker UI, including managing the search query and filtering the list of countries based on the query. It provides functionality for updating the search query and filtering the countries by name, country code, or international dial code.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The list of countries to be displayed.

Link copied to clipboard

The current search query entered by the user.

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Updates the search query and filters the list of countries based on the query.