'how to filter data in dropdown search in flutter

DropdownSearch.multiSelection( label: "Divison", mode: Mode.DIALOG, popupTitle: const Text("Select Divison"), showSearchBox: true, onChanged: (List val) { snapshot.addFilters(val.first); }, showSelectedItems: true, items: snapshot.divisionlist .map((e) => e.name) .toSet() .toList(), );



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source