I built a beautiful DropdownButton in my flutter app, but have had a hard time finding out how to actually use it.
How can I extract the selected value?
I want to use it to update the settings for my search bar. When a user selects '1' the search bar should search a specific column in my Sqlite database, when they select '2' it should search other columns. After I extract the value is it best to make my if/else statement above the search bar or in the part of my code that tells how to search the database?