CountryExt extension

An extension on a list of CountriesModel to provide additional functionalities.

on

Methods

filter(String v) List<CountriesModel>

Available on List<CountriesModel>, provided by the CountryExt extension

Filters the list of CountriesModel based on a search value v.
getCountry(String dialCode) CountriesModel

Available on List<CountriesModel>, provided by the CountryExt extension

Retrieves a CountriesModel by its dialCode.
getCountryFromCode(String countryCode) CountriesModel?

Available on List<CountriesModel>, provided by the CountryExt extension

Retrieves a CountriesModel by its countryCode.