DropdownSearch<T>.multiSelection constructor
DropdownSearch<T>.multiSelection ({
- Key? key,
- AutovalidateMode? autoValidateMode = AutovalidateMode.disabled,
- List<
T> items = const [], - DropdownSearchOnFind<
T> ? asyncItems, - DropDownDecoratorProps dropdownDecoratorProps = const DropDownDecoratorProps(),
- ClearButtonProps clearButtonProps = const ClearButtonProps(),
- DropdownButtonProps dropdownButtonProps = const DropdownButtonProps(),
- bool enabled = true,
- DropdownSearchFilterFn<
T> ? filterFn, - DropdownSearchItemAsString<
T> ? itemAsString, - DropdownSearchCompareFn<
T> ? compareFn, - List<
T> selectedItems = const [], - PopupPropsMultiSelection<
T> popupProps = const PopupPropsMultiSelection.menu(), - FormFieldSetter<
List< ? onSaved,T> > - ValueChanged<
List< ? onChanged,T> > - BeforeChangeMultiSelection<
T> ? onBeforeChange, - BeforePopupOpeningMultiSelection<
T> ? onBeforePopupOpening, - FormFieldValidator<
List< ? validator,T> > - DropdownSearchBuilderMultiSelection<
T> ? dropdownBuilder,
Implementation
DropdownSearch.multiSelection({
Key? key,
this.autoValidateMode = AutovalidateMode.disabled,
this.items = const [],
this.asyncItems,
this.dropdownDecoratorProps = const DropDownDecoratorProps(),
this.clearButtonProps = const ClearButtonProps(),
this.dropdownButtonProps = const DropdownButtonProps(),
this.enabled = true,
this.filterFn,
this.itemAsString,
this.compareFn,
this.selectedItems = const [],
this.popupProps = const PopupPropsMultiSelection.menu(),
FormFieldSetter<List<T>>? onSaved,
ValueChanged<List<T>>? onChanged,
BeforeChangeMultiSelection<T>? onBeforeChange,
BeforePopupOpeningMultiSelection<T>? onBeforePopupOpening,
FormFieldValidator<List<T>>? validator,
DropdownSearchBuilderMultiSelection<T>? dropdownBuilder,
}) : assert(
!popupProps.showSelectedItems || T == String || compareFn != null,
),
this.onChangedMultiSelection = onChanged,
this.onBeforePopupOpeningMultiSelection = onBeforePopupOpening,
this.onSavedMultiSelection = onSaved,
this.onBeforeChangeMultiSelection = onBeforeChange,
this.validatorMultiSelection = validator,
this.dropdownBuilderMultiSelection = dropdownBuilder,
this.isMultiSelectionMode = true,
this.dropdownBuilder = null,
this.validator = null,
this.onBeforeChange = null,
this.selectedItem = null,
this.onSaved = null,
this.onChanged = null,
this.onBeforePopupOpening = null,
super(key: key);