i got the code from pub.dev but its a bit complicated for me to understand when i try to get the value that on the ccp. this is the code what they give me
void _onCountryChange(CountryCode countryCode) {
//TODO : manipulate the selected country code here
print("New Country selected: " + countryCode.toString());
}
how can i get the value and pass it to other place
i already implement the ccp that look like this
CountryCodePicker(
initialSelection: "ID",
favorite: ['+62', "ID"],
),
it works fine when i did the onChange: print, in the CountryCodePicker. they give the exact thing that i want