Rajendra Shrestha

Results 2 comments of Rajendra Shrestha

Late initialize or simply initializing to 0 got my app running I was having this same issue

getCountryCodeFromDialCode(String? dialCode){ if(dialCode==null) return 'UG'; var _selectedCountry = countries.firstWhere((item) => item.dialCode == dialCode.replaceAll("+", '')); return _selectedCountry.code; } 'countries' list is provided in the package itself.