FilterListWidget<T extends Object> constructor

const FilterListWidget<T extends Object>({
  1. Key? key,
  2. FilterListThemeData? themeData,
  3. List<T>? listData,
  4. required ValidateSelectedItem<T> validateSelectedItem,
  5. ValidateRemoveItem<T>? validateRemoveItem,
  6. required LabelDelegate<T> choiceChipLabel,
  7. required SearchPredict<T> onItemSearch,
  8. List<T>? selectedListData,
  9. OnApplyButtonClick<T>? onApplyButtonClick,
  10. ChoiceChipBuilder? choiceChipBuilder,
  11. Widget? headerCloseIcon,
  12. String? headlineText,
  13. bool hideSelectedTextCount = false,
  14. bool hideSearchField = false,
  15. bool hideCloseIcon = true,
  16. bool? hideHeader = false,
  17. Color? backgroundColor = Colors.white,
  18. bool enableOnlySingleSelection = false,
  19. String? allButtonText = 'All',
  20. String? applyButtonText = 'Apply',
  21. String? resetButtonText = 'Reset',
  22. String? selectedItemsText = 'selected items',
  23. List<ControlButtonType> controlButtons = const [ControlButtonType.All, ControlButtonType.Reset],
})

Implementation

const FilterListWidget({
  Key? key,
  this.themeData,
  this.listData,
  required this.validateSelectedItem,
  this.validateRemoveItem,
  required this.choiceChipLabel,
  required this.onItemSearch,
  this.selectedListData,
  this.onApplyButtonClick,
  this.choiceChipBuilder,
  this.headerCloseIcon,
  this.headlineText,
  this.hideSelectedTextCount = false,
  this.hideSearchField = false,
  this.hideCloseIcon = true,
  this.hideHeader = false,
  this.backgroundColor = Colors.white,
  this.enableOnlySingleSelection = false,
  this.allButtonText = 'All',
  this.applyButtonText = 'Apply',
  this.resetButtonText = 'Reset',
  this.selectedItemsText = 'selected items',
  this.controlButtons = const [
    ControlButtonType.All,
    ControlButtonType.Reset
  ],
}) : super(key: key);