SingleItemDropper<T> constructor
const
SingleItemDropper<T> ({
- Key? key,
- required List<
ItemDropperItem< items,T> > - ItemDropperItem<
T> ? selectedItem, - required ItemDropperItemCallback<
T> onChanged, - String? hintText,
- Widget popupItemBuilder()?,
- required double width,
- bool enabled = true,
- bool showKeyboard = false,
- ItemDropperItem<
T> ? onAddItem(- String searchText
- void onDeleteItem(
- ItemDropperItem<
T> item
- ItemDropperItem<
- GlobalKey<
State< ? inputKey,StatefulWidget> > - double maxDropdownHeight = SingleSelectConstants.kDefaultMaxDropdownHeight,
- double elevation = ItemDropperConstants.kDropdownElevation,
- bool showScrollbar = true,
- double scrollbarThickness = ItemDropperConstants.kDefaultScrollbarThickness,
- TextStyle? fieldTextStyle,
- TextStyle? popupTextStyle,
- TextStyle? popupGroupHeaderStyle,
- double? itemHeight,
- BoxDecoration? fieldDecoration,
- bool showDropdownPositionIcon = true,
- bool showDeleteAllIcon = true,
- ItemDropperLocalizations? localizations,
Implementation
const SingleItemDropper({
super.key,
required this.items,
this.selectedItem,
required this.onChanged,
this.hintText,
this.popupItemBuilder,
required this.width,
this.enabled = true,
this.showKeyboard = false,
this.onAddItem,
this.onDeleteItem,
this.inputKey,
this.maxDropdownHeight = SingleSelectConstants.kDefaultMaxDropdownHeight,
this.elevation = ItemDropperConstants.kDropdownElevation,
this.showScrollbar = true,
this.scrollbarThickness = ItemDropperConstants.kDefaultScrollbarThickness,
this.fieldTextStyle,
this.popupTextStyle,
this.popupGroupHeaderStyle,
this.itemHeight,
this.fieldDecoration,
this.showDropdownPositionIcon = true,
this.showDeleteAllIcon = true,
this.localizations,
});