how to change the selected item in a reusable DropdownSearch<ArabicEnglish> widget after…
- User
how to change the selected item in a reusable DropdownSearch widget after the widget has been initialized and that reusable DropdownSearch widget located in seperate file
- Assistant
To change the selected item in a reusable
DropdownSearch<ArabicEnglish>widget after it has been initialized, you can make use of aGlobalKeyto access the widget's state and modify the selected item. Here is an example of how you can achieve this in a separate file: