MultiSelectDropdownPlus<C extends StateStreamableSource<S>, S> constructor

const MultiSelectDropdownPlus<C extends StateStreamableSource<S>, S>({
  1. required C cubit,
  2. required void onSearch(
    1. String query
    ),
  3. required void onStateChange(
    1. S state,
    2. void updateList(
      1. List<DropdownItem>
      ),
    3. void updateLoading(
      1. bool
      )
    ),
  4. required String hintText,
  5. Key? key,
  6. List<DropdownItem> selectedItems = const [],
  7. void onSelectionChanged(
    1. List<DropdownItem> items
    )?,
  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 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,
});