CountryCodePicker
CountryCodePicker copied to clipboard
contry code value
trying to assign the selected country value to a string and it keeps returning null. Need to save the value to firestore
onChanged: (val) { print(val.name); setState(() { val.name = countryValue.toString(); print(countryValue); }); },
The problem is here val.name = countryValue.toString() <-- it's reverse it should be like this countryValue = val.name.toString()