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

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