MultiSelectDropdownPlus<C extends BlocBase<S> , S> constructor
const
MultiSelectDropdownPlus<C extends BlocBase<S> , S> ({
- required C cubit,
- required void onSearch(
- String query
- required void onStateChange(
- S state,
- void updateList(),
- void updateLoading()
- required String hintText,
- Key? key,
- List<
DropdownItem> selectedItems = const [], - void onSelectionChanged(
- List<
DropdownItem> items
- List<
- 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 MultiSelectDropdownPlus({
required this.cubit,
required this.onSearch,
required this.onStateChange,
required this.hintText,
super.key,
this.selectedItems = const [],
this.onSelectionChanged,
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,
});