SearchableDropdownPlus<C extends BlocBase<S> , S> constructor
const
SearchableDropdownPlus<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,
- DropdownItem? selectedValue,
- void onSelectionChanged(
- DropdownItem item
- String? searchHint,
- String? noResultsText,
- String? loadingText,
- bool needInitialFetch = false,
- DropdownPlusTheme? dropdownTheme,
- DropdownPlusThemeStyle? themeStyle,
- Widget itemBuilder(
- DropdownItem item,
- bool isSelected
- Widget selectedValueBuilder(
- DropdownItem selectedItem
- Future<
bool> checkInternetConnection()?,
Implementation
const SearchableDropdownPlus({
required this.cubit,
required this.onSearch,
required this.onStateChange,
required this.hintText,
super.key,
this.selectedValue,
this.onSelectionChanged,
this.searchHint,
this.noResultsText,
this.loadingText,
this.needInitialFetch = false,
this.dropdownTheme,
this.themeStyle,
this.itemBuilder,
this.selectedValueBuilder,
this.checkInternetConnection,
});