MultiSelectorDialog<T> constructor
const
MultiSelectorDialog<T> ({
- Key? key,
- required List<
MultiSelectorItem< items,T> > - required List<
T> initialValue, - Widget? title,
- void onConfirm(
- List<
T>
- List<
- bool searchable = false,
- Text? confirmText,
- Text? cancelText,
- Color? selectedColor,
- String? searchHint,
- Color? colorBuilder(
- T
- Color? backgroundColor,
- Color? unselectedColor,
- Icon? searchIcon,
- Icon? closeSearchIcon,
- TextStyle? itemsTextStyle,
- TextStyle? selectedItemsTextStyle,
- TextStyle? searchTextStyle,
- TextStyle? searchHintStyle,
- bool separateSelectedItems = false,
- Color? checkColor,
- double? elevation,
- ShapeBorder? shape,
- EdgeInsets? contentPadding,
- bool showSelectAll = false,
- String? selectAllText,
- String? deselectAllText,
- bool useChipsForSelection = false,
- double? dialogWidth,
- double? dialogHeight,
Creates a multi-selection dialog
Implementation
const MultiSelectorDialog({
super.key,
required this.items,
required this.initialValue,
this.title,
this.onConfirm,
this.searchable = false,
this.confirmText,
this.cancelText,
this.selectedColor,
this.searchHint,
this.colorBuilder,
this.backgroundColor,
this.unselectedColor,
this.searchIcon,
this.closeSearchIcon,
this.itemsTextStyle,
this.selectedItemsTextStyle,
this.searchTextStyle,
this.searchHintStyle,
this.separateSelectedItems = false,
this.checkColor,
this.elevation,
this.shape,
this.contentPadding,
this.showSelectAll = false,
this.selectAllText,
this.deselectAllText,
this.useChipsForSelection = false,
this.dialogWidth,
this.dialogHeight,
});