'There should be exactly one item with [DropdownButton]'s value: Select district. Either zero or 2 or more [DropdownMenuItem]s were detected

I keep getting a dropdown errors, There should be exactly one item with [DropdownButton]'s value: Select district. Either zero or 2 or more [DropdownMenuItem]s were detected.

If I change something get another one. API is working fine and data is added to the list. everything works but this one didn't.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source