MultiSelectDropdown constructor

const MultiSelectDropdown({
  1. required String hintText,
  2. required List<DropdownItem> items,
  3. required bool isLoading,
  4. Key? key,
  5. List<DropdownItem> selectedItems = const [],
  6. void onSelectionChanged(
    1. List<DropdownItem> items
    )?,
  7. void onSearch(
    1. String query
    )?,
  8. String? searchHint,
  9. String? noResultsText,
  10. String? loadingText,
  11. bool needInitialFetch = false,
  12. int maxDisplayChips = 2,
  13. DropdownPlusTheme? dropdownTheme,
  14. DropdownPlusThemeStyle? themeStyle,
  15. Widget itemBuilder(
    1. DropdownItem item,
    2. bool isSelected
    )?,
  16. Widget selectedItemBuilder(
    1. List<DropdownItem> selected
    )?,
  17. double? buttonHeight,
  18. double? buttonWidth,
  19. Future<bool> checkInternetConnection()?,
  20. Duration debounceDuration = Duration.zero,
  21. bool enabled = true,
  22. bool autofocusSearch = false,
  23. DropdownEmptyBuilder? emptyBuilder,
  24. DropdownLoadingBuilder? loadingBuilder,
  25. Object? error,
  26. VoidCallback? onRetry,
  27. DropdownErrorBuilder? errorBuilder,
  28. String? semanticsLabel,
  29. int minSearchLength = 0,
  30. VoidCallback? onLoadMore,
  31. bool hasMore = false,
  32. bool isLoadingMore = false,
  33. FocusNode? focusNode,
  34. DropdownMenuController? menuController,
})

Implementation

const MultiSelectDropdown({
  required this.hintText,
  required this.items,
  required this.isLoading,
  super.key,
  this.selectedItems = const [],
  this.onSelectionChanged,
  this.onSearch,
  this.searchHint,
  this.noResultsText,
  this.loadingText,
  this.needInitialFetch = false,
  this.maxDisplayChips = 2,
  this.dropdownTheme,
  this.themeStyle,
  this.itemBuilder,
  this.selectedItemBuilder,
  this.buttonHeight,
  this.buttonWidth,
  this.checkInternetConnection,
  this.debounceDuration = Duration.zero,
  this.enabled = true,
  this.autofocusSearch = false,
  this.emptyBuilder,
  this.loadingBuilder,
  this.error,
  this.onRetry,
  this.errorBuilder,
  this.semanticsLabel,
  this.minSearchLength = 0,
  this.onLoadMore,
  this.hasMore = false,
  this.isLoadingMore = false,
  this.focusNode,
  this.menuController,
});