I have the dropdown menu and it works fine, all I want is how can I open this menu from somewhere else. I have the global key but I couldn't find how to do it. I examined the previously opened posts, the codes there did not work on my computer.
DropdownButtonHideUnderline(
child: DropdownButton<String>(
key: dropdownKey,
value: e.feedback,
isExpanded: true,
hint: Align(
alignment: Alignment.centerLeft,
child: Text("Seçiniz",
style: ThemeText.orderDetailTitle
.copyWith(color: Color(0xFFA2ADB8)))),
icon: Icon(
Icons.keyboard_arrow_down,
color: Color(0xFFA2ADB8),
),
iconSize: 25,
underline: SizedBox(),
onChanged: (value) async {
},
items: e.didBought == true
? _dropdownBoughtReasonsItems
: _dropdownReturnReasonsItems,
),
),