DropdownFlutter<T>.multiSelectSearchRequest constructor
const
DropdownFlutter<T>.multiSelectSearchRequest ({
- Key? key,
- required Future<
List< futureRequest()?,T> > - required dynamic onListChanged(
- List<
T>
- List<
- MultiSelectController<
T> ? multiSelectController, - Duration? futureRequestDelay,
- List<
T> ? initialItems, - List<
T> ? items, - SingleSelectController<
T?> ? controller, - ScrollController? itemsScrollController,
- OverlayPortalController? overlayController,
- dynamic visibility()?,
- String? hintText,
- CustomDropdownDecoration? decoration,
- String? searchHintText,
- String? noResultFoundText,
- _HeaderListBuilder<
T> ? headerListBuilder, - _ListItemBuilder<
T> ? listItemBuilder, - _HintBuilder? hintBuilder,
- _NoResultFoundBuilder? noResultFoundBuilder,
- String? listValidator(
- List<
T>
- List<
- bool validateOnChange = true,
- int maxlines = 1,
- double? overlayHeight,
- Widget? searchRequestLoadingIndicator,
- EdgeInsets? closedHeaderPadding,
- EdgeInsets? expandedHeaderPadding,
- EdgeInsets? itemsListPadding,
- EdgeInsets? listItemPadding,
- bool canCloseOutsideBounds = true,
- bool hideSelectedFieldWhenExpanded = false,
- bool enabled = true,
- CustomDropdownDisabledDecoration? disabledDecoration,
- bool closeDropDownOnClearFilterSearch = false,
- bool shouldResetSelection = false,
Implementation
const DropdownFlutter.multiSelectSearchRequest({
super.key,
required this.futureRequest,
required this.onListChanged,
this.multiSelectController,
this.futureRequestDelay,
this.initialItems,
this.items,
this.controller,
this.itemsScrollController,
this.overlayController,
this.visibility,
this.hintText,
this.decoration,
this.searchHintText,
this.noResultFoundText,
this.headerListBuilder,
this.listItemBuilder,
this.hintBuilder,
this.noResultFoundBuilder,
this.listValidator,
this.validateOnChange = true,
this.maxlines = 1,
this.overlayHeight,
this.searchRequestLoadingIndicator,
this.closedHeaderPadding,
this.expandedHeaderPadding,
this.itemsListPadding,
this.listItemPadding,
this.canCloseOutsideBounds = true,
this.hideSelectedFieldWhenExpanded = false,
this.enabled = true,
this.disabledDecoration,
this.closeDropDownOnClearFilterSearch = false,
this.shouldResetSelection = false,
}) : assert(
initialItems == null || multiSelectController == null,
'Only one of initialItems or controller can be specified at a time',
),
_searchType = _SearchType.onRequestData,
_dropdownType = _DropdownType.multipleSelect,
initialItem = null,
onChanged = null,
headerBuilder = null,
excludeSelected = false,
validator = null;