SearchableDropdown constructor
const
SearchableDropdown({
- required String hintText,
- required List<
DropdownItem> items, - required bool isLoading,
- Key? key,
- DropdownItem? selectedValue,
- void onSelectionChanged(
- DropdownItem item
- void onSearch(
- String query
- 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 SearchableDropdown({
required this.hintText,
required this.items,
required this.isLoading,
super.key,
this.selectedValue,
this.onSelectionChanged,
this.onSearch,
this.searchHint,
this.noResultsText,
this.loadingText,
this.needInitialFetch = false,
this.dropdownTheme,
this.themeStyle,
this.itemBuilder,
this.selectedValueBuilder,
this.checkInternetConnection,
});