Converting 2 digit country code to a full name

Custom Code

When a user adds an event into my app, they set the location using the GooglePlacePicker - but this always displays the country as a two digit code.

I'd like to be able to convert this to a full country name, as another part of the app will allow the user to filter events by country, and I was going to use a dropdown where thye can see full country names, rather than just the 2 digit codes.

What have you tried so far?

I tried to make a custom function using the Code Pilot, but I just can't work out how to enable this and activate it after the Placepicker has been used, so that it actively converts the two digtis to a name and then updates the app state. Open to any ideas?

Did you check FlutterFlow's Documentation for this topic?
Yes
2