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()?,
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,
});