DropdownFlutter<T>.multiSelectSearchRequest constructor

const DropdownFlutter<T>.multiSelectSearchRequest({
  1. Key? key,
  2. required Future<List<T>> futureRequest(
    1. String
    )?,
  3. required dynamic onListChanged(
    1. List<T>
    )?,
  4. MultiSelectController<T>? multiSelectController,
  5. Duration? futureRequestDelay,
  6. List<T>? initialItems,
  7. List<T>? items,
  8. SingleSelectController<T?>? controller,
  9. ScrollController? itemsScrollController,
  10. OverlayPortalController? overlayController,
  11. dynamic visibility(
    1. bool
    )?,
  12. String? hintText,
  13. CustomDropdownDecoration? decoration,
  14. String? searchHintText,
  15. String? noResultFoundText,
  16. _HeaderListBuilder<T>? headerListBuilder,
  17. _ListItemBuilder<T>? listItemBuilder,
  18. _HintBuilder? hintBuilder,
  19. _NoResultFoundBuilder? noResultFoundBuilder,
  20. String? listValidator(
    1. List<T>
    )?,
  21. bool validateOnChange = true,
  22. int maxlines = 1,
  23. double? overlayHeight,
  24. Widget? searchRequestLoadingIndicator,
  25. EdgeInsets? closedHeaderPadding,
  26. EdgeInsets? expandedHeaderPadding,
  27. EdgeInsets? itemsListPadding,
  28. EdgeInsets? listItemPadding,
  29. bool canCloseOutsideBounds = true,
  30. bool hideSelectedFieldWhenExpanded = false,
  31. bool enabled = true,
  32. CustomDropdownDisabledDecoration? disabledDecoration,
  33. bool closeDropDownOnClearFilterSearch = 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,
})  : 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;