First, you need to update your DropdownButton type argument to ClassType and not String . In Dart, an enum declaration creates a new type, not Strings. DropdownButton(…); Next, you need to change the enum names.
First, you need to update your DropdownButton type argument to ClassType and not String . In Dart, an enum declaration creates a new type, not Strings. DropdownButton(…); Next, you need to change the enum names.