I made 2 dropdown in flutter, the data I get from API. In the first dropdown, showing 2 brands of car. In the second dropdown, showing type of car dependent brand of car. When I choose the first dropdown, type of car successfully showed. Then I choose the second dropdown. There is no issue for that. But when I repopulate brands of car, there is error showed
There should be exactly one item with [DropdownButtonFormField]'s value: Instance of 'Data'. Either zero or 2 or more [DropdownMenuItem]s were detected with the same value
this is the first dropdown
and this is the second dropdown
thanks in advice.