MultiSelectDropdown constructor
const
MultiSelectDropdown({
- required String hintText,
- required List<
DropdownItem> items, - required bool isLoading,
- Key? key,
- List<
DropdownItem> selectedItems = const [], - void onSelectionChanged(
- List<
DropdownItem> items
- List<
- void onSearch(
- String query
- String? searchHint,
- String? noResultsText,
- String? loadingText,
- bool needInitialFetch = false,
- int maxDisplayChips = 2,
- DropdownPlusTheme? dropdownTheme,
- DropdownPlusThemeStyle? themeStyle,
- Widget itemBuilder(
- DropdownItem item,
- bool isSelected
- Widget selectedItemBuilder(
- List<
DropdownItem> selected
- List<
- double? buttonHeight,
- double? buttonWidth,
- Future<
bool> checkInternetConnection()?, - Duration debounceDuration = Duration.zero,
- bool enabled = true,
- bool autofocusSearch = false,
- DropdownEmptyBuilder? emptyBuilder,
- DropdownLoadingBuilder? loadingBuilder,
- Object? error,
- VoidCallback? onRetry,
- DropdownErrorBuilder? errorBuilder,
- String? semanticsLabel,
- int minSearchLength = 0,
- VoidCallback? onLoadMore,
- bool hasMore = false,
- bool isLoadingMore = false,
- FocusNode? focusNode,
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,
});