INNER CODE UNIT · Dart
DropdownSearchState
salim-lachdhaf/dropdown_search · lib/src/base_dropdown_search.dart:326
class DropdownSearchState<T> extends State<BaseDropdownSearch<T>> {
final ValueNotifier<List<T>> _selectedItemsNotifier = ValueNotifier([]);
final ValueNotifier<bool> _isFocused = ValueNotifier(false);
final _popupStateKey = GlobalKey<DropdownSearchPopupState<T>>();
CustomOverlayEntry? _customOverlyEntry;
final autoCompleteFocusNode = FocusNode();
@override
void initState() {
super.initState();
_selectedItemsNotifier.value = List.from(widget.selectedItems);
if (widget.popupProps.mode == PopupMode.autocomplete) {
HardwareKeyboard.instance
.addHandler(_handleAutoCompleteBackPressKeyPress);
}
_isFocused.addListener(() {