MultiDropdown<T extends Object>.asyncSearch constructor

const MultiDropdown<T extends Object>.asyncSearch({
  1. required Future<List<DropdownItem<T>>> search(
    1. String search
    )?,
  2. Duration? searchDebounceDuration = const Duration(milliseconds: 300),
  3. FieldDecoration fieldDecoration = const FieldDecoration(),
  4. DropdownDecoration dropdownDecoration = const DropdownDecoration(),
  5. SearchFieldDecoration searchDecoration = const SearchFieldDecoration(),
  6. DropdownItemDecoration dropdownItemDecoration = const DropdownItemDecoration(),
  7. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  8. bool singleSelect = false,
  9. Widget? itemSeparator,
  10. MultiSelectController<T>? controller,
  11. String? validator(
    1. List<DropdownItem<T>>? selectedOptions
    )?,
  12. DropdownItemBuilder<T>? itemBuilder,
  13. bool enabled = true,
  14. ChipDecoration chipDecoration = const ChipDecoration(),
  15. int maxSelections = 0,
  16. SelectedItemBuilder<T>? selectedItemBuilder,
  17. FocusNode? focusNode,
  18. OnSelectionChanged<T>? onSelectionChange,
  19. bool closeOnBackButton = false,
  20. Widget loadingBuilder(
    1. BuildContext context
    )?,
  21. double? fieldMaxHeight,
  22. 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);