DropdownSearch<T>.multiSelection constructor
DropdownSearch<T>.multiSelection ({
- Key? key,
- AutovalidateMode? autoValidateMode = AutovalidateMode.disabled,
- Mode mode = Mode.DIALOG,
- @Deprecated('Use labelText prop from dropdownSearchDecoration') String? label,
- @Deprecated('Use hintText prop from dropdownSearchDecoration') String? hint,
- bool isFilteredOnline = false,
- Widget? popupTitle,
- List<
T> ? items, - DropdownSearchOnFind<
T> ? onFind, - DropdownSearchPopupItemBuilder<
T> ? popupItemBuilder, - bool showSearchBox = false,
- bool showClearButton = false,
- Color? popupBackgroundColor,
- bool enabled = true,
- double? maxHeight,
- DropdownSearchFilterFn<
T> ? filterFn, - DropdownSearchItemAsString<
T> ? itemAsString, - bool showSelectedItems = false,
- DropdownSearchCompareFn<
T> ? compareFn, - InputDecoration? dropdownSearchDecoration,
- EmptyBuilder? emptyBuilder,
- LoadingBuilder? loadingBuilder,
- ErrorBuilder? errorBuilder,
- double? dialogMaxWidth,
- Widget? clearButton,
- IconButtonBuilder? clearButtonBuilder,
- double? clearButtonSplashRadius,
- Widget? dropDownButton,
- IconButtonBuilder? dropdownButtonBuilder,
- double? dropdownButtonSplashRadius,
- bool showAsSuffixIcons = false,
- bool dropdownBuilderSupportsNullItem = false,
- ShapeBorder? popupShape,
- DropdownSearchPopupItemEnabled<
T> ? popupItemDisabled, - Color? popupBarrierColor,
- VoidCallback? onPopupDismissed,
- Duration? searchDelay,
- FavoriteItemsBuilder<
T> ? favoriteItemBuilder, - FavoriteItems<
T> ? favoriteItems, - bool showFavoriteItems = false,
- MainAxisAlignment? favoriteItemsAlignment = MainAxisAlignment.start,
- PopupSafeArea popupSafeArea = const PopupSafeArea(),
- TextFieldProps? searchFieldProps,
- ScrollbarProps? scrollbarProps,
- bool popupBarrierDismissible = true,
- TextStyle? dropdownSearchBaseStyle,
- TextAlign? dropdownSearchTextAlign,
- TextAlignVertical? dropdownSearchTextAlignVertical,
- List<
T> selectedItems = const [], - FormFieldSetter<
List< ? onSaved,T> > - ValueChanged<
List< ? onChange,T> > - BeforeChangeMultiSelection<
T> ? onBeforeChange, - FormFieldValidator<
List< ? validator,T> > - DropdownSearchBuilderMultiSelection<
T> ? dropdownBuilder, - OnItemAdded<
T> ? popupOnItemAdded, - OnItemRemoved<
T> ? popupOnItemRemoved, - DropdownSearchPopupItemBuilder<
T> ? popupSelectionWidget, - ValidationMultiSelectionBuilder<
T?> ? popupValidationMultiSelectionWidget, - double popupElevation = 8,
- SelectionListViewProps selectionListViewProps = const SelectionListViewProps(),
- FocusNode? focusNode,
- PositionCallback? positionCallback,
Implementation
DropdownSearch.multiSelection({
Key? key,
this.autoValidateMode = AutovalidateMode.disabled,
this.mode = Mode.DIALOG,
@Deprecated('Use labelText prop from dropdownSearchDecoration') this.label,
@Deprecated('Use hintText prop from dropdownSearchDecoration') this.hint,
this.isFilteredOnline = false,
this.popupTitle,
this.items,
this.onFind,
this.popupItemBuilder,
this.showSearchBox = false,
this.showClearButton = false,
this.popupBackgroundColor,
this.enabled = true,
this.maxHeight,
this.filterFn,
this.itemAsString,
this.showSelectedItems = false,
this.compareFn,
this.dropdownSearchDecoration,
this.emptyBuilder,
this.loadingBuilder,
this.errorBuilder,
this.dialogMaxWidth,
this.clearButton,
this.clearButtonBuilder,
this.clearButtonSplashRadius,
this.dropDownButton,
this.dropdownButtonBuilder,
this.dropdownButtonSplashRadius,
this.showAsSuffixIcons = false,
this.dropdownBuilderSupportsNullItem = false,
this.popupShape,
this.popupItemDisabled,
this.popupBarrierColor,
this.onPopupDismissed,
this.searchDelay,
this.favoriteItemBuilder,
this.favoriteItems,
this.showFavoriteItems = false,
this.favoriteItemsAlignment = MainAxisAlignment.start,
this.popupSafeArea = const PopupSafeArea(),
TextFieldProps? searchFieldProps,
this.scrollbarProps,
this.popupBarrierDismissible = true,
this.dropdownSearchBaseStyle,
this.dropdownSearchTextAlign,
this.dropdownSearchTextAlignVertical,
this.selectedItems = const [],
FormFieldSetter<List<T>>? onSaved,
ValueChanged<List<T>>? onChange,
BeforeChangeMultiSelection<T>? onBeforeChange,
FormFieldValidator<List<T>>? validator,
DropdownSearchBuilderMultiSelection<T>? dropdownBuilder,
this.popupOnItemAdded,
this.popupOnItemRemoved,
this.popupSelectionWidget,
this.popupValidationMultiSelectionWidget,
this.popupElevation = 8,
this.selectionListViewProps = const SelectionListViewProps(),
this.focusNode,
this.positionCallback,
}) : assert(!showSelectedItems || T == String || compareFn != null),
this.searchFieldProps = searchFieldProps ?? TextFieldProps(),
this.onChangedMultiSelection = onChange,
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,
super(key: key);