removeItem method
void
removeItem(
- T item
Implementation
void removeItem(T item) {
if (isMultiple) {
selectedItems.remove(item);
onSelectItems?.call(selectedItems);
_updateMultipleText();
} else {
selectedItem = null;
textEditingController.clear();
_init([]);
onSelectItem?.call(null);
onClearItem?.call();
focusNode.unfocus();
closeOverlay();
}
notifyListeners();
_overlayEntry?.markNeedsBuild();
}