FilterListWidget<T extends Object> constructor
const
FilterListWidget<T extends Object> ({
- Key? key,
- FilterListThemeData? themeData,
- List<
T> ? listData, - required ValidateSelectedItem<
T> validateSelectedItem, - ValidateRemoveItem<
T> ? validateRemoveItem, - required LabelDelegate<
T> choiceChipLabel, - required SearchPredict<
T> onItemSearch, - List<
T> ? selectedListData, - OnApplyButtonClick<
T> ? onApplyButtonClick, - ChoiceChipBuilder? choiceChipBuilder,
- Widget? headerCloseIcon,
- String? headlineText,
- bool hideSelectedTextCount = false,
- bool hideSearchField = false,
- bool hideCloseIcon = true,
- bool? hideHeader = false,
- Color? backgroundColor = Colors.white,
- bool enableOnlySingleSelection = false,
- String? allButtonText = 'All',
- String? applyButtonText = 'Apply',
- String? resetButtonText = 'Reset',
- String? selectedItemsText = 'selected items',
- 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);