MultiDropdown<T extends Object>.asyncSearch constructor
const
MultiDropdown<T extends Object>.asyncSearch ({
- required Future<
List< search(DropdownItem< >T> >- String search
- Duration? searchDebounceDuration = const Duration(milliseconds: 300),
- FieldDecoration fieldDecoration = const FieldDecoration(),
- DropdownDecoration dropdownDecoration = const DropdownDecoration(),
- SearchFieldDecoration searchDecoration = const SearchFieldDecoration(),
- DropdownItemDecoration dropdownItemDecoration = const DropdownItemDecoration(),
- AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
- bool singleSelect = false,
- Widget? itemSeparator,
- MultiSelectController<
T> ? controller, - String? validator(
- List<
DropdownItem< ? selectedOptionsT> >
- List<
- DropdownItemBuilder<
T> ? itemBuilder, - bool enabled = true,
- ChipDecoration chipDecoration = const ChipDecoration(),
- int maxSelections = 0,
- SelectedItemBuilder<
T> ? selectedItemBuilder, - FocusNode? focusNode,
- OnSelectionChanged<
T> ? onSelectionChange, - bool closeOnBackButton = false,
- Widget loadingBuilder(
- BuildContext context
- double? fieldMaxHeight,
- Key? key,
Implementation
const MultiDropdown.asyncSearch({
required this.search,
this.searchDebounceDuration = const Duration(milliseconds: 300),
this.fieldDecoration = const FieldDecoration(),
this.dropdownDecoration = const DropdownDecoration(),
this.searchDecoration = const SearchFieldDecoration(),
this.dropdownItemDecoration = const DropdownItemDecoration(),
this.autovalidateMode = AutovalidateMode.disabled,
this.singleSelect = false,
this.itemSeparator,
this.controller,
this.validator,
this.itemBuilder,
this.enabled = true,
this.chipDecoration = const ChipDecoration(),
this.maxSelections = 0,
this.selectedItemBuilder,
this.focusNode,
this.onSelectionChange,
this.closeOnBackButton = false,
this.loadingBuilder,
this.fieldMaxHeight,
Key? key,
}) : items = const [],
searchEnabled = true,
future = null,
onSearchChange = null,
super(key: key);