on Search Query Change
Updates the search query and filters the list of countries based on the query.
This method is called when the user changes the search query. It updates the searchQuery
property and triggers a filtering process for the list of countries. If the search query is empty, it restores the full list of countries.
Parameters
text
The new search query entered by the user.