CustomDropdown<T>.multiSelectSearchRequest constructor
const
CustomDropdown<T>.multiSelectSearchRequest(- {Key? key,
- required Future<List<T>> futureRequest(
- String
)?,
- required dynamic onListChanged(
- List<T>
)?,
- MultiSelectController<T>? multiSelectController,
- Duration? futureRequestDelay,
- List<T>? initialItems,
- List<T>? items,
- SingleSelectController<T?>? controller,
- ScrollController? itemsScrollController,
- OverlayPortalController? overlayController,
- dynamic visibility(
- bool
)?,
- String? hintText,
- CustomDropdownDecoration? decoration,
- String? searchHintText,
- String? noResultFoundText,
- _ListItemBuilder<T>? listItemBuilder,
- _HintBuilder? hintBuilder,
- _NoResultFoundBuilder? noResultFoundBuilder,
- String? listValidator(
- List<T>
)?,
- bool validateOnChange = true,
- int maxlines = 1,
- double? overlayHeight,
- Widget? searchRequestLoadingIndicator,
- EdgeInsets? expandedHeaderPadding,
- EdgeInsets? itemsListPadding,
- EdgeInsets? listItemPadding,
- bool canCloseOutsideBounds = true,
- bool hideSelectedFieldWhenExpanded = false,
- bool enabled = true,
- CustomDropdownDisabledDecoration? disabledDecoration,
- bool closeDropDownOnClearFilterSearch = false}
)
Implementation
const CustomDropdown.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,
}) : 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;