MultiSelectorDialog<T> constructor

const MultiSelectorDialog<T>({
  1. Key? key,
  2. required List<MultiSelectorItem<T>> items,
  3. required List<T> initialValue,
  4. Widget? title,
  5. void onConfirm(
    1. List<T>
    )?,
  6. bool searchable = false,
  7. Text? confirmText,
  8. Text? cancelText,
  9. Color? selectedColor,
  10. String? searchHint,
  11. Color? colorBuilder(
    1. T
    )?,
  12. Color? backgroundColor,
  13. Color? unselectedColor,
  14. Icon? searchIcon,
  15. Icon? closeSearchIcon,
  16. TextStyle? itemsTextStyle,
  17. TextStyle? selectedItemsTextStyle,
  18. TextStyle? searchTextStyle,
  19. TextStyle? searchHintStyle,
  20. bool separateSelectedItems = false,
  21. Color? checkColor,
  22. double? elevation,
  23. ShapeBorder? shape,
  24. EdgeInsets? contentPadding,
  25. bool showSelectAll = false,
  26. String? selectAllText,
  27. String? deselectAllText,
  28. bool useChipsForSelection = false,
  29. double? dialogWidth,
  30. 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,
});