Closed Kydarun closed 6 years ago
You are setting a string for the initialValue
, but it requires a Country
. If you don't want there to be an initial country just omit the initialValue
argument altogether.
Also if _formData.country
is a Country
and not a string, your onSaved
argument has an error.
Ah, sorry, my bad for missing out. Thank you for the reply. I will close this issue now.
Coding that went wrong:
Stacktrace:
My Country class:
And here is my async function
_countries(search)
:The
onSearch
function never executed. The intended API response (which I tested at Postman & is working fine):Flutter doctor:
Flutter extension is already installed in my Visual Studio Code, however due to this bug, it's safe to ignore this warning.