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