getCountryByDialCode method
Implementation
Country getCountryByDialCode(String dialCode) {
return getCountries.firstWhere(
(country) => country.dialCode.replaceFirst('+', '') == dialCode,
orElse: () {
if (_onUnsupportedCountrySelected != null) {
_onUnsupportedCountrySelected!(dialCode);
}
return _selectedCountry;
});
}