当我选择下拉列表中的值时,将调用setState方法并将新值存储在dropdownValue变量中。但这一变化并没有反映在屏幕上。contradictions) { //stores the list of contradictions () {
titleWidget = DropdownButton
例如,为了在TextFormField中设置文本,我可以使用TextEditingController.textEditingController.text = 'my text'; // This is where I can set the text in the TextFormField
是否有类似的方式以编程方式在DropdownButton中设置所选内容?据我所知,仅仅将va