Setstate for statless widget dropdownButton from a stateful parent
问题 I have three widgets first one is LightBulb(stateless) that have some color properties. The second one is widget named as LightColorSelector(stateless) that has a DropdownMenu with string type items Red , Green and Blue . And, the third class is Classroom(stateful widget) which is the parent of that two classes. My aim is to set the states from that class. I need to set a list of that three colors inside the Classroom , when someone clicks on one of the LightColorSelector items the LightBulb